mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix browser compatibility issue for element.closest
This commit is contained in:
parent
e722614639
commit
4d289dc590
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue