From a9651ad07ea24e849246093285dcd6cc47af4338 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 16 Jun 2022 21:26:18 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/5208 --- app/src/protyle/wysiwyg/list.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/wysiwyg/list.ts b/app/src/protyle/wysiwyg/list.ts index 5df64baa1..d45802dc6 100644 --- a/app/src/protyle/wysiwyg/list.ts +++ b/app/src/protyle/wysiwyg/list.ts @@ -249,7 +249,7 @@ export const breakList = (protyle: IProtyle, blockElement: Element, range: Range action: "insert", data: listItemElement.parentElement.outerHTML, previousID: listItemElement.parentElement.previousElementSibling?.getAttribute("data-node-id"), - parentID: listItemElement.parentElement.parentElement.getAttribute("data-node-id") + parentID: listItemElement.parentElement.parentElement.getAttribute("data-node-id") || protyle.block.rootID }); listItemElement.parentElement.remove(); doOperations.push({