This commit is contained in:
Vanessa 2024-03-25 17:38:13 +08:00
parent 35ef97c25c
commit 2e63ebc2ff
2 changed files with 2 additions and 2 deletions

View file

@ -1870,7 +1870,7 @@ export const setFold = (protyle: IProtyle, nodeElement: Element, isOpen?: boolea
if (nodeElement.getAttribute("data-type") === "NodeThematicBreak") {
return -1;
}
let hasFold = nodeElement.getAttribute("fold") === "1";
const hasFold = nodeElement.getAttribute("fold") === "1";
if (hasFold) {
if (typeof isOpen === "boolean" && !isOpen) {
return -1;