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;