Vanessa 2024-10-14 21:57:17 +08:00
parent ef07e20355
commit dbcd62198a

View file

@ -14,6 +14,7 @@ import {hasClosestByClassName, hasTopClosestByTag} from "../protyle/util/hasClos
import {App} from "../index"; import {App} from "../index";
import {Constants} from "../constants"; import {Constants} from "../constants";
import {textMenu} from "./text"; import {textMenu} from "./text";
import {hideTooltip} from "../dialog/tooltip";
export class Menus { export class Menus {
public menu: Menu; public menu: Menu;
@ -86,6 +87,7 @@ export class Menus {
event.stopPropagation(); event.stopPropagation();
break; break;
} else if (dataType && target.classList.contains("dock__item")) { } else if (dataType && target.classList.contains("dock__item")) {
hideTooltip();
initDockMenu(target).popup({x: event.clientX, y: event.clientY}); initDockMenu(target).popup({x: event.clientX, y: event.clientY});
event.stopPropagation(); event.stopPropagation();
break; break;