mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: do not delete frame children on frame delete (#9011)
This commit is contained in:
parent
46f42ef8d7
commit
ae6bee3403
3 changed files with 103 additions and 40 deletions
|
@ -105,6 +105,10 @@ export const selectGroupsForSelectedElements = (function () {
|
|||
const groupElementsIndex: Record<GroupId, string[]> = {};
|
||||
const selectedElementIdsInGroups = elements.reduce(
|
||||
(acc: Record<string, true>, element) => {
|
||||
if (element.isDeleted) {
|
||||
return acc;
|
||||
}
|
||||
|
||||
const groupId = element.groupIds.find((id) => selectedGroupIds[id]);
|
||||
|
||||
if (groupId) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue