Merge pull request #17490 from owncloud/fix-closest

Fix browser compatibility issue for element.closest()
This commit is contained in:
Thomas Müller 2015-07-17 14:10:35 +02:00
commit c00211034d
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@
if (!area.is(':animated')) {
// button toggles the area
if (button === event.target.closest('[data-apps-slide-toggle]')) {
if ($(button).is($(event.target).closest('[data-apps-slide-toggle]'))) {
if (area.is(':visible')) {
hideArea();
} else {