mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-06 17:17:15 +02:00
(un)lock a frame should not affect elements unrelated to the frame
This commit is contained in:
@@ -28,8 +28,9 @@ export const actionToggleElementLock = register({
|
||||
elements: elements.map((element) => {
|
||||
if (
|
||||
!selectedElementsMap.has(element.id) &&
|
||||
element.frameId &&
|
||||
!selectedElementsMap.has(element.frameId)
|
||||
(!element.frameId ||
|
||||
// lock frame children if frame is selected
|
||||
(element.frameId && !selectedElementsMap.has(element.frameId)))
|
||||
) {
|
||||
return element;
|
||||
}
|
||||
|
Reference in New Issue
Block a user