From 4478829b33680ed6f63d3ceb7c528cee33f7a1c4 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 31 Jul 2023 15:29:23 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/8863 --- app/src/protyle/util/editorCommonEvent.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.ts index 219ae2439..c943af66a 100644 --- a/app/src/protyle/util/editorCommonEvent.ts +++ b/app/src/protyle/util/editorCommonEvent.ts @@ -602,6 +602,7 @@ const dragSame = async (protyle: IProtyle, sourceElements: Element[], targetElem }); } if (!isCopy && + isSameDoc && // 同一文档分屏后,oldSourceParentElement 已经被移走,不可再 update https://github.com/siyuan-note/siyuan/issues/8863 oldSourceParentElement && oldSourceParentElement.classList.contains("list") && oldSourceParentElement.getAttribute("data-subtype") === "o" && !oldSourceParentElement.isSameNode(sourceElements[0].parentElement) && oldSourceParentElement.childElementCount > 1) {