Vanessa 2023-06-08 23:38:57 +08:00
parent 6189becad1
commit fcbe6ffa19

View file

@ -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;