fix: when editing text action buttons did not function

This commit is contained in:
zsviczian
2025-12-01 11:47:43 +00:00
parent c93688226f
commit 04b4c2239f

View File

@@ -1648,7 +1648,7 @@ export const actionChangeContainerBehavior = register<
captureUpdate: CaptureUpdateAction.IMMEDIATELY, captureUpdate: CaptureUpdateAction.IMMEDIATELY,
}; };
} }
const nextElements = changeProperty(elements, appState, (el) => const nextElements = elements.map((el) =>
containerIdsToUpdate.has(el.id) containerIdsToUpdate.has(el.id)
? newElementWith(el, { ? newElementWith(el, {
containerBehavior: { containerBehavior: {
@@ -1686,7 +1686,7 @@ export const actionChangeContainerBehavior = register<
}; };
} }
const textFlow = value.textFlow; const textFlow = value.textFlow;
const nextElements = changeProperty(elements, appState, (el) => const nextElements = elements.map((el) =>
containerIdsToUpdate.has(el.id) containerIdsToUpdate.has(el.id)
? newElementWith(el, { ? newElementWith(el, {
containerBehavior: { containerBehavior: {