Skip to content

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

:bug: Preserve search focus when opening relation fields https://github.com/siyuan-note/siyuan/issues/19904

Daniel90bed1836d57
diff --git a/app/src/protyle/render/av/relationLayout.ts b/app/src/protyle/render/av/relationLayout.ts
index d959e8baa7..248d4b9ca1 100644
--- a/app/src/protyle/render/av/relationLayout.ts
+++ b/app/src/protyle/render/av/relationLayout.ts
@@ -82,6 +82,7 @@ export const bindRelationLayout = (root: HTMLElement, databaseID: string, onResi
renderFields();
positionMenu();
});
+ button.addEventListener("mousedown", event => event.preventDefault());
button.addEventListener("keydown", event => {
if (event.key === "Enter" || event.key === " ") {
event.preventDefault();