From 1697cdff95ceba3e9116569978a693f25142b9c7 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 28 Apr 2024 23:02:37 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/11164 --- app/src/protyle/wysiwyg/list.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/protyle/wysiwyg/list.ts b/app/src/protyle/wysiwyg/list.ts index 14b9a870f..78b0d0b6d 100644 --- a/app/src/protyle/wysiwyg/list.ts +++ b/app/src/protyle/wysiwyg/list.ts @@ -60,6 +60,9 @@ export const addSubList = (protyle: IProtyle, nodeElement: Element, range: Range if (lastSubItem.parentElement.getAttribute("fold") === "1") { setFold(protyle, lastSubItem.parentElement, true); } + if (parentItemElement.getAttribute("fold") === "1") { + setFold(protyle, parentItemElement, true); + } transaction(protyle, [{ action: "insert", id,