mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-22 23:14:07 +01:00
This commit is contained in:
parent
8d4f4f9b7a
commit
cade0853ae
2 changed files with 13 additions and 13 deletions
|
|
@ -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 ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue