This commit is contained in:
Vanessa 2022-06-07 20:08:14 +08:00
parent d1ff28c535
commit 7b6b50d584

View file

@ -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,