diff --git a/packages/excalidraw/actions/actionProperties.tsx b/packages/excalidraw/actions/actionProperties.tsx index 76caa7e22e..5eb64bc8b5 100644 --- a/packages/excalidraw/actions/actionProperties.tsx +++ b/packages/excalidraw/actions/actionProperties.tsx @@ -1648,7 +1648,7 @@ export const actionChangeContainerBehavior = register< captureUpdate: CaptureUpdateAction.IMMEDIATELY, }; } - const nextElements = changeProperty(elements, appState, (el) => + const nextElements = elements.map((el) => containerIdsToUpdate.has(el.id) ? newElementWith(el, { containerBehavior: { @@ -1686,7 +1686,7 @@ export const actionChangeContainerBehavior = register< }; } const textFlow = value.textFlow; - const nextElements = changeProperty(elements, appState, (el) => + const nextElements = elements.map((el) => containerIdsToUpdate.has(el.id) ? newElementWith(el, { containerBehavior: {