mirror of
https://github.com/nextcloud/server.git
synced 2024-08-30 17:57:26 +02:00
fix browser compatibility issue for element.closest
This commit is contained in:
parent
e722614639
commit
4d289dc590
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user