From 1d082288de197b41d390c925b622b28c9aa9f949 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 8 Feb 2023 12:40:16 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/7284 --- app/src/protyle/util/editorCommonEvent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.ts index 2e7866f42..c2a99ab24 100644 --- a/app/src/protyle/util/editorCommonEvent.ts +++ b/app/src/protyle/util/editorCommonEvent.ts @@ -867,7 +867,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => { if (!targetElement) { return; } - const fileTreeIds = window.siyuan.dragElement ? window.siyuan.dragElement.innerText || ""; + const fileTreeIds = window.siyuan.dragElement ? window.siyuan.dragElement.innerText : ""; if (targetElement && dragoverElement && targetElement.isSameNode(dragoverElement)) { // 性能优化,目标为同一个元素不再进行校验 const nodeRect = targetElement.getBoundingClientRect();