From 2768d4407a1df643d6aaf7e58a297f75ff3364c9 Mon Sep 17 00:00:00 2001 From: bepyan Date: Thu, 15 Aug 2024 23:17:21 +0900 Subject: [PATCH] feat: unselect element while delete --- src/components/editor/action.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/editor/action.ts b/src/components/editor/action.ts index 79a3730..c3553ac 100644 --- a/src/components/editor/action.ts +++ b/src/components/editor/action.ts @@ -304,6 +304,7 @@ const actionHandlers: { return updateEditorHistory(editor, { ...editor.state, elements: newElements, + selectedElement: emptyElement, }); },