From 287339c66cba9e2d8e616dd0163cd1cecfcb6de4 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 19 Dec 2025 20:32:00 +0800 Subject: [PATCH] :bug: https://github.com/siyuan-note/siyuan/issues/16630 --- 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 4dad47fdc..cda011467 100644 --- a/app/src/protyle/util/editorCommonEvent.ts +++ b/app/src/protyle/util/editorCommonEvent.ts @@ -60,7 +60,7 @@ const moveTo = async (protyle: IProtyle, sourceElements: Element[], targetElemen for (let index = sourceElements.length - 1; index >= 0; index--) { const item = sourceElements[index]; const id = item.getAttribute("data-node-id"); - const parentID = item.parentElement.getAttribute("data-node-id") || protyle.block.parentID || protyle.block.rootID; + const parentID = getParentBlock(item).getAttribute("data-node-id") || protyle.block.parentID || protyle.block.rootID; if (item.getAttribute("data-type") === "NodeListItem" && !newListId && !isSameLi) { newListId = Lute.NewNodeID(); newListElement = document.createElement("div");