From 92576d32273627f29ab0fb7743d601f8bd2772a4 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 8 Apr 2024 21:33:41 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/10877 --- app/src/protyle/render/av/cell.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts index 53f625189..7f8689f28 100644 --- a/app/src/protyle/render/av/cell.ts +++ b/app/src/protyle/render/av/cell.ts @@ -440,7 +440,8 @@ export const popTextCell = (protyle: IProtyle, cellElements: HTMLElement[], type }); } avMaskElement.addEventListener("click", (event) => { - if ((event.target as HTMLElement).classList.contains("av__mask") && document.activeElement.tagName !== "TEXTAREA") { + if ((event.target as HTMLElement).classList.contains("av__mask") + && document.activeElement.tagName !== "TEXTAREA" && document.activeElement.tagName !== "INPUT") { updateCellValueByInput(protyle, type, blockElement, cellElements); avMaskElement?.remove(); }