mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
do not select deleted elements (#1215)
This commit is contained in:
parent
ae1eee15cc
commit
44f871de71
1 changed files with 3 additions and 1 deletions
|
@ -8,7 +8,9 @@ export const actionSelectAll = register({
|
|||
appState: {
|
||||
...appState,
|
||||
selectedElementIds: elements.reduce((map, element) => {
|
||||
map[element.id] = true;
|
||||
if (!element.isDeleted) {
|
||||
map[element.id] = true;
|
||||
}
|
||||
return map;
|
||||
}, {} as any),
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue