From cc033c115de9f3e9c274ba270d206e0efec29eeb Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 19 Nov 2024 17:25:33 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E5=88=A0=E9=99=A4=E5=9D=97=EF=BC=8C?= =?UTF-8?q?=E5=B5=8C=E5=85=A5=E5=9D=97=E4=B8=AD=E6=B2=A1=E6=9C=89=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/protyle/wysiwyg/transaction.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts index dfa850752..b779d25f1 100644 --- a/app/src/protyle/wysiwyg/transaction.ts +++ b/app/src/protyle/wysiwyg/transaction.ts @@ -418,7 +418,7 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo: return; } if (operation.action === "delete") { - if (updateElements.length > 0) { + if (updateElements.length > 0 || !isUndo) { deleteBlock(updateElements, operation.id, protyle, isUndo); } else if (isUndo) { zoomOut({