(un)lock a frame should not affect elements unrelated to the frame

frame-issues
Ryan Di 1 year ago
parent d9d1a3ab99
commit 0bf1b4c4af

@ -28,8 +28,9 @@ export const actionToggleElementLock = register({
elements: elements.map((element) => { elements: elements.map((element) => {
if ( if (
!selectedElementsMap.has(element.id) && !selectedElementsMap.has(element.id) &&
element.frameId && (!element.frameId ||
!selectedElementsMap.has(element.frameId) // lock frame children if frame is selected
(element.frameId && !selectedElementsMap.has(element.frameId)))
) { ) {
return element; return element;
} }

Loading…
Cancel
Save