From 2769fc3e03e5f50fd7574c21973726b71b5116f1 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 18 Jan 2024 19:46:21 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/10207 --- app/src/protyle/wysiwyg/remove.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/wysiwyg/remove.ts b/app/src/protyle/wysiwyg/remove.ts index a71595a6b..b7a6d010d 100644 --- a/app/src/protyle/wysiwyg/remove.ts +++ b/app/src/protyle/wysiwyg/remove.ts @@ -446,7 +446,9 @@ export const removeBlock = (protyle: IProtyle, blockElement: Element, range: Ran } return; } - if (editableElement.textContent !== "") { + if (editableElement.textContent !== "" || + // https://github.com/siyuan-note/siyuan/issues/10207 + blockElement.classList.contains("av")) { focusBlock(previousLastElement, undefined, false); return; }