From cade0853ae7e8fe77d03a0d6a3e597ff7f466ddd Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 9 Feb 2024 15:09:26 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/10317 --- app/src/block/popover.ts | 2 +- app/src/config/editor.ts | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/app/src/block/popover.ts b/app/src/block/popover.ts index 1cbd16f18..2940b92fc 100644 --- a/app/src/block/popover.ts +++ b/app/src/block/popover.ts @@ -198,7 +198,7 @@ const hidePopover = (event: MouseEvent & { path: HTMLElement[] }) => { }; const getTarget = (event: MouseEvent & { target: HTMLElement }, aElement: false | HTMLElement) => { - if (hasClosestByClassName(event.target, "history__repo", true)) { + if (window.siyuan.config.editor.floatWindowMode === 2 || hasClosestByClassName(event.target, "history__repo", true)) { return false; } popoverTargetElement = hasClosestByAttribute(event.target, "data-type", "block-ref") as HTMLElement || diff --git a/app/src/config/editor.ts b/app/src/config/editor.ts index fc0771f1e..2e342363f 100644 --- a/app/src/config/editor.ts +++ b/app/src/config/editor.ts @@ -73,18 +73,6 @@ export const editor = { -