fix(editor): initialize selectedLinearElement after pasting arrows (#11803)

This commit is contained in:
yanrin
2026-08-04 23:38:15 +02:00
committed by GitHub
parent c9c96f619c
commit 46c42a6cb0
+2 -14
View File
@@ -4766,22 +4766,10 @@ class App extends React.Component<AppProps, AppState> {
editorJotaiStore.get(isSidebarDockedAtom)
? this.state.openSidebar
: null,
...selectGroupsForSelectedElements(
{
editingGroupId: null,
selectedElementIds: nextElementsToSelect.reduce(
(acc: Record<ExcalidrawElement["id"], true>, element) => {
if (!isBoundToContainer(element)) {
acc[element.id] = true;
}
return acc;
},
{},
),
},
...getSelectionStateForElements(
nextElementsToSelect,
this.scene.getNonDeletedElements(),
this.state,
this,
),
},
() => {