kopia lustrzana https://github.com/Tldraw/Tldraw
move group select logic to action
rodzic
c308cc2edd
commit
0e07c7956b
|
@ -6632,7 +6632,6 @@ export class Editor extends EventEmitter<TLEventMap> {
|
|||
},
|
||||
])
|
||||
this.reparentShapes(sortedShapeIds, groupId)
|
||||
this.select(groupId)
|
||||
})
|
||||
|
||||
return this
|
||||
|
|
|
@ -560,7 +560,9 @@ export function ActionsProvider({ overrides, children }: ActionsProviderProps) {
|
|||
editor.ungroupShapes(editor.getSelectedShapeIds())
|
||||
} else {
|
||||
editor.mark('group')
|
||||
editor.groupShapes(editor.getSelectedShapeIds())
|
||||
const groupId = createShapeId()
|
||||
editor.groupShapes(editor.getSelectedShapeIds(), groupId)
|
||||
editor.select(groupId)
|
||||
}
|
||||
},
|
||||
},
|
||||
|
|
Ładowanie…
Reference in New Issue