Vanessa 2024-02-09 15:09:26 +08:00
parent 8d4f4f9b7a
commit cade0853ae
2 changed files with 13 additions and 13 deletions

View file

@ -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 ||