From fcbe6ffa19ea7dd85b5042b28c7aeb98afebdef2 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 8 Jun 2023 23:38:57 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/7536 --- app/src/protyle/render/av/action.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts index 00e3dd783..c593e91bc 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;