diff options
author | Maxim Devaev <[email protected]> | 2022-02-24 11:07:20 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-02-24 11:07:20 +0300 |
commit | 13afa9f4d34fbdb961b64e307c951b3e2868edc3 (patch) | |
tree | f59692a09fe8b11e2a3ff69a4f3736decde7de63 | |
parent | 30ce90b1007756c53a6a4e31a073df7071f1e855 (diff) |
fix
-rw-r--r-- | web/share/js/wm.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/web/share/js/wm.js b/web/share/js/wm.js index 823272d8..0a7c8d4f 100644 --- a/web/share/js/wm.js +++ b/web/share/js/wm.js @@ -339,7 +339,10 @@ function __WindowManager() { }; var __globalMouseButtonHandler = function(event) { - if (!event.target.matches(".menu-button") && !event.target.closest(".modal")) { + if ( + event.target.matches && !event.target.matches(".menu-button") + && event.target.closest && !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; |