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/8692

Vanessa86fe2bbfc48a
diff --git a/app/src/protyle/render/av/col.ts b/app/src/protyle/render/av/col.ts
index 64e5ac09d8..fa1a406513 100644
--- a/app/src/protyle/render/av/col.ts
+++ b/app/src/protyle/render/av/col.ts
@@ -158,6 +158,9 @@ export const bindEditEvent = (options: { protyle: IProtyle, data: IAV, menuEleme
}
});
const addOptionElement = options.menuElement.querySelector('[data-type="addOption"]') as HTMLInputElement;
+ if (!addOptionElement) {
+ return;
+ }
addOptionElement.addEventListener("keydown", (event: KeyboardEvent) => {
if (event.isComposing) {
return;