Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: https://github.com/siyuan-note/siyuan/issues/16455

Vanessad81d51799744
diff --git a/app/src/protyle/util/onGet.ts b/app/src/protyle/util/onGet.ts
index c7a6683810..fa00eeb992 100644
--- a/app/src/protyle/util/onGet.ts
+++ b/app/src/protyle/util/onGet.ts
@@ -464,7 +464,7 @@ const focusElementById = (protyle: IProtyle, action: string[], scrollAttr?: IScr
}
});
}
- if (!focusElement && protyle.block.id === protyle.block.rootID) {
+ if (!focusElement && protyle.block.id === protyle.block.rootID && protyle.title?.editElement) {
focusElement = protyle.title.editElement;
}
if (protyle.block.mode === 4) {