summaryrefslogtreecommitdiff
path: root/web/share
diff options
context:
space:
mode:
Diffstat (limited to 'web/share')
-rw-r--r--web/share/js/wm.js6
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();