feat: update stroke color of bounded text along with container (#4541)

This commit is contained in:
Aakansha Doshi 2022-01-05 16:27:48 +05:30 committed by GitHub
parent 5f476e09d4
commit cec92c1d17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,13 +112,18 @@ export const actionChangeStrokeColor = register({
perform: (elements, appState, value) => { perform: (elements, appState, value) => {
return { return {
...(value.currentItemStrokeColor && { ...(value.currentItemStrokeColor && {
elements: changeProperty(elements, appState, (el) => { elements: changeProperty(
elements,
appState,
(el) => {
return hasStrokeColor(el.type) return hasStrokeColor(el.type)
? newElementWith(el, { ? newElementWith(el, {
strokeColor: value.currentItemStrokeColor, strokeColor: value.currentItemStrokeColor,
}) })
: el; : el;
}), },
true,
),
}), }),
appState: { appState: {
...appState, ...appState,