mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-11 05:45:14 -04:00
Fix selection bug
This commit is contained in:
parent
4eb62e40dd
commit
a664b71430
@ -115,9 +115,11 @@ export const actionFinalize = register({
|
|||||||
// TODO: #7348 in theory this gets recorded by the store, so the invisible elements could be restored by the undo/redo, which might be not what we would want
|
// TODO: #7348 in theory this gets recorded by the store, so the invisible elements could be restored by the undo/redo, which might be not what we would want
|
||||||
newElements = newElements.filter((el) => el.id !== element!.id);
|
newElements = newElements.filter((el) => el.id !== element!.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
elements: newElements,
|
elements: newElements,
|
||||||
appState: {
|
appState: {
|
||||||
|
...appState,
|
||||||
selectedLinearElement: {
|
selectedLinearElement: {
|
||||||
...linearElementEditor,
|
...linearElementEditor,
|
||||||
selectedPointsIndices: null,
|
selectedPointsIndices: null,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user