mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-09 14:12:34 +01:00
This commit is contained in:
parent
ea066c2a38
commit
731c9fd9f1
3 changed files with 9 additions and 3 deletions
|
|
@ -99,6 +99,9 @@ export const initBlockPopover = (app: App) => {
|
|||
const hidePopover = (event: MouseEvent & { path: HTMLElement[] }) => {
|
||||
// pad 端点击后 event.target 不会更新。
|
||||
const target = document.elementFromPoint(event.clientX, event.clientY);
|
||||
if (!target) {
|
||||
return false;
|
||||
}
|
||||
if (hasClosestByClassName(target, "b3-menu") ||
|
||||
(target.id && target.tagName !== "svg" && (target.id.startsWith("minder_node") || target.id.startsWith("kity_") || target.id.startsWith("node_")))
|
||||
|| target.classList.contains("counter")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue