From b32ec745e7ad226e555eef45a8cb8c7ab6e5ba04 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 15 Aug 2022 17:36:14 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/5637 --- app/src/protyle/wysiwyg/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts index fd4429cee..3f80f6b10 100644 --- a/app/src/protyle/wysiwyg/index.ts +++ b/app/src/protyle/wysiwyg/index.ts @@ -1252,7 +1252,7 @@ export class WYSIWYG { this.element.addEventListener("input", (event: InputEvent) => { const target = event.target as HTMLElement; - if (target.tagName === "VIDEO" || target.tagName === "AUDIO" || event.inputType === "historyRndo") { + if (target.tagName === "VIDEO" || target.tagName === "AUDIO" || event.inputType === "historyRedo") { return; } /// #if !BROWSER