From 86fe2bbfc48a47dd77c2a7efe6ad6666f8f1728e Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 22 Jul 2023 22:20:37 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/8692 --- app/src/protyle/render/av/col.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/protyle/render/av/col.ts b/app/src/protyle/render/av/col.ts index 64e5ac09d..fa1a40651 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;