From 89902a9fd9e5a6624332760fa236925e428fc8a1 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 28 Sep 2023 13:38:26 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/9273 --- app/src/protyle/util/editorCommonEvent.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.ts index 52376dc0c..ce0ae2509 100644 --- a/app/src/protyle/util/editorCommonEvent.ts +++ b/app/src/protyle/util/editorCommonEvent.ts @@ -1053,7 +1053,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => { if (targetElement.getAttribute("data-type") === "NodeListItem" || fileTreeIds.indexOf("-") > -1) { if (event.clientY > nodeRect.top + nodeRect.height / 2) { targetElement.classList.add("dragover__bottom", "protyle-wysiwyg--select"); - } else { + } else if (!targetElement.classList.contains("av__row--header")) { targetElement.classList.add("dragover__top", "protyle-wysiwyg--select"); } return; @@ -1085,7 +1085,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => { return; } if (fileTreeIds.indexOf("-") > -1) { - if (fileTreeIds.split(",").includes(protyle.block.rootID)) { + if (fileTreeIds.split(",").includes(protyle.block.rootID) && !targetElement.classList.contains("av__row")) { dragoverElement = undefined; } else { dragoverElement = targetElement;