From cec92c1d17629ddbbd7d87384fa386b35fccd2fa Mon Sep 17 00:00:00 2001 From: Aakansha Doshi Date: Wed, 5 Jan 2022 16:27:48 +0530 Subject: [PATCH] feat: update stroke color of bounded text along with container (#4541) --- src/actions/actionProperties.tsx | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/src/actions/actionProperties.tsx b/src/actions/actionProperties.tsx index 59200c80..4b3b6338 100644 --- a/src/actions/actionProperties.tsx +++ b/src/actions/actionProperties.tsx @@ -112,13 +112,18 @@ export const actionChangeStrokeColor = register({ perform: (elements, appState, value) => { return { ...(value.currentItemStrokeColor && { - elements: changeProperty(elements, appState, (el) => { - return hasStrokeColor(el.type) - ? newElementWith(el, { - strokeColor: value.currentItemStrokeColor, - }) - : el; - }), + elements: changeProperty( + elements, + appState, + (el) => { + return hasStrokeColor(el.type) + ? newElementWith(el, { + strokeColor: value.currentItemStrokeColor, + }) + : el; + }, + true, + ), }), appState: { ...appState,