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,