mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
This commit is contained in:
parent
ef07e20355
commit
dbcd62198a
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue