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

View File

@ -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,