From 4c402b5609bbe6471a01c4f45f9183b2a7e941b2 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 12 Nov 2022 00:18:42 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/6552 --- app/src/protyle/util/editorCommonEvent.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.ts index 062ccf0f6..aaad002c1 100644 --- a/app/src/protyle/util/editorCommonEvent.ts +++ b/app/src/protyle/util/editorCommonEvent.ts @@ -747,8 +747,12 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => { } return; } - if (fileTreeIds.indexOf("-") > -1 && !fileTreeIds.split(",").includes(protyle.block.rootID)) { - dragoverElement = targetElement; + if (fileTreeIds.indexOf("-") > -1) { + if (fileTreeIds.split(",").includes(protyle.block.rootID)) { + dragoverElement = undefined; + } else { + dragoverElement = targetElement; + } return; }