Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: fix https://github.com/siyuan-note/siyuan/issues/10877

Vanessa49168d9d6e21
diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts
index d35896738f..53f6251893 100644
--- a/app/src/protyle/render/av/cell.ts
+++ b/app/src/protyle/render/av/cell.ts
@@ -440,7 +440,7 @@ export const popTextCell = (protyle: IProtyle, cellElements: HTMLElement[], type
});
}
avMaskElement.addEventListener("click", (event) => {
- if ((event.target as HTMLElement).classList.contains("av__mask")) {
+ if ((event.target as HTMLElement).classList.contains("av__mask") && document.activeElement.tagName !== "TEXTAREA") {
updateCellValueByInput(protyle, type, blockElement, cellElements);
avMaskElement?.remove();
}