summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2026-02-09 16:38:17 +0100
committerMaze Winther <mazewinther@gmail.com>2026-02-09 16:38:17 +0100
commit33a8705f0d967891402c61dd3192e6bad24921ef (patch)
tree567a4cb2fcdfd1cf44dc00d509d4f32424633c2d
parentfe10cee3eb96112983709a37831ef4ceda396178 (diff)
downloadopencut-33a8705f0d967891402c61dd3192e6bad24921ef.tar.gz
fix selection not getting cleared after element deletion
-rw-r--r--apps/web/src/hooks/actions/use-editor-actions.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/web/src/hooks/actions/use-editor-actions.ts b/apps/web/src/hooks/actions/use-editor-actions.ts
index d1ff6c92..1ce890cb 100644
--- a/apps/web/src/hooks/actions/use-editor-actions.ts
+++ b/apps/web/src/hooks/actions/use-editor-actions.ts
@@ -199,6 +199,7 @@ export function useEditorActions() {
editor.timeline.deleteElements({
elements: selectedElements,
});
+ editor.selection.clearSelection();
},
undefined,
);