Skip to content

Commit

Permalink
feat: unselect element while delete
Browse files Browse the repository at this point in the history
  • Loading branch information
bepyan committed Aug 15, 2024
1 parent c64d0fb commit 2768d44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/editor/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ const actionHandlers: {
return updateEditorHistory(editor, {
...editor.state,
elements: newElements,
selectedElement: emptyElement,
});
},

Expand Down

0 comments on commit 2768d44

Please sign in to comment.