From cbad03815d724a4e2d0f55295a802660bbd9c699 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 26 Nov 2024 10:49:21 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/13254 --- app/src/protyle/wysiwyg/remove.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/protyle/wysiwyg/remove.ts b/app/src/protyle/wysiwyg/remove.ts index e50e8a4c6..4aa421656 100644 --- a/app/src/protyle/wysiwyg/remove.ts +++ b/app/src/protyle/wysiwyg/remove.ts @@ -387,6 +387,8 @@ export const removeBlock = (protyle: IProtyle, blockElement: Element, range: Ran // 需先移除 removeElement,否则 side 会选中 removeElement removeElement.remove(); focusBlock(previousLastElement, undefined, false); + // https://github.com/siyuan-note/siyuan/issues/13254 + undoOperations.splice(0, 1); } else { const previousLastEditElement = getContenteditableElement(previousLastElement); if (editableElement && (editableElement.textContent !== "" || editableElement.querySelector(".emoji"))) {