mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 09:10:30 +08:00
fix
This commit is contained in:
parent
30ce90b100
commit
13afa9f4d3
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user