🎨 删除块,嵌入块中没有同步删除

This commit is contained in:
Vanessa 2024-11-19 17:25:33 +08:00
parent 9f1430a08a
commit cc033c115d

View file

@ -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({