From 7b6b50d58401fd57a9c33923de685d9198d77c2b Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 7 Jun 2022 20:08:14 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/5018 --- 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 d24868486..8ba3816d1 100644 --- a/app/src/protyle/util/onGet.ts +++ b/app/src/protyle/util/onGet.ts @@ -181,7 +181,7 @@ const setHTML = (options: { content: string, action?: string[] }, protyle: IProt // https://github.com/siyuan-note/siyuan/issues/5018 if (!protyle.scroll.element.classList.contains("fn__none") && protyle.wysiwyg.element.lastElementChild.getAttribute("data-eof") !== "true" && - protyle.wysiwyg.element.clientHeight < protyle.contentElement.clientHeight) { + protyle.contentElement.scrollHeight <= protyle.contentElement.clientHeight) { fetchPost("/api/filetree/getDoc", { id: protyle.wysiwyg.element.lastElementChild.getAttribute("data-node-id"), mode: 2,