From d05d444c667237082a1d348561fc5c3fef05898b Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 18 Jun 2023 00:40:36 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/8569 --- app/src/protyle/util/onGet.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/util/onGet.ts b/app/src/protyle/util/onGet.ts index c805a803f..fc5fca831 100644 --- a/app/src/protyle/util/onGet.ts +++ b/app/src/protyle/util/onGet.ts @@ -113,7 +113,7 @@ const setHTML = (options: { expand: boolean, scrollAttr?: IScrollAttr }, protyle: IProtyle) => { - if (protyle.contentElement.classList.contains("fn__none")) { + if (protyle.contentElement.classList.contains("fn__none") && protyle.wysiwyg.element.innerHTML !== "") { return; } protyle.block.showAll = options.action.includes(Constants.CB_GET_ALL);