Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/7536

Vanessafcbe6ffa19ea
diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts
index 00e3dd7838..c593e91bc5 100644
--- a/app/src/protyle/render/av/action.ts
+++ b/app/src/protyle/render/av/action.ts
@@ -116,7 +116,7 @@ export const avClick = (protyle: IProtyle, event: MouseEvent & { target: HTMLEle
y: cellRect.bottom,
h: cellRect.height
});
- (window.siyuan.menus.menu.element.querySelector(".b3-text-field") as HTMLInputElement).select();
+ (window.siyuan.menus.menu.element.querySelector(".b3-text-field") as HTMLInputElement)?.select();
event.preventDefault();
event.stopPropagation();
return true;