Merge pull request #17490 from owncloud/fix-closest
Fix browser compatibility issue for element.closest()
This commit is contained in:
commit
c00211034d
|
@ -58,7 +58,7 @@
|
||||||
if (!area.is(':animated')) {
|
if (!area.is(':animated')) {
|
||||||
|
|
||||||
// button toggles the area
|
// 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')) {
|
if (area.is(':visible')) {
|
||||||
hideArea();
|
hideArea();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue