diff options
author | Maxim Devaev <[email protected]> | 2022-10-08 13:26:50 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-10-08 13:26:50 +0300 |
commit | 2a238465828dd00ed1a52f401938ed0b3a029e8e (patch) | |
tree | a5a2a927480d8dfba75bc55a80b142167ac0b5a9 /web/share | |
parent | a39d3dffbe837c15576615656df5a924bcd44831 (diff) |
removed data-dont-hide-menu
Diffstat (limited to 'web/share')
-rw-r--r-- | web/share/js/wm.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/share/js/wm.js b/web/share/js/wm.js index 20ea0805..afef708c 100644 --- a/web/share/js/wm.js +++ b/web/share/js/wm.js @@ -349,10 +349,10 @@ function __WindowManager() { && !event.target.closest(".modal") ) { for (let el_item = event.target; el_item && el_item !== document; el_item = el_item.parentNode) { - if (el_item.hasAttribute("data-force-hide-menu")) { - break; - } else if (el_item.hasAttribute("data-dont-hide-menu")) { + if (el_item.classList.contains("menu")) { return; + } else if (el_item.hasAttribute("data-force-hide-menu")) { + break; } } __closeAllMenues(); |