Bläddra i källkod

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

Aakansha Doshi 3 år sedan
förälder
incheckning
cec92c1d17
1 ändrade filer med 12 tillägg och 7 borttagningar
  1. 12 7
      src/actions/actionProperties.tsx

+ 12 - 7
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,