From 61cf47a403ed5740cb6c4e1cd9e650439f8ca097 Mon Sep 17 00:00:00 2001 From: zsviczian Date: Fri, 23 Dec 2022 17:41:51 +0100 Subject: [PATCH] Update actionProperties.tsx --- src/actions/actionProperties.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/actions/actionProperties.tsx b/src/actions/actionProperties.tsx index 4e6f0d5876..8bb4254736 100644 --- a/src/actions/actionProperties.tsx +++ b/src/actions/actionProperties.tsx @@ -201,12 +201,23 @@ export const actionChangeStrokeColor = register({ name: "changeStrokeColor", trackEvent: false, perform: (elements, appState, value) => { + const containers = getSelectedElements(elements, appState, false) + .filter((el) => el.boundElements) + .map((el) => el.id); return { ...(value.currentItemStrokeColor && { elements: changeProperty( elements, appState, (el) => { + if ( + isTextElement(el) && + el.containerId && + containers.includes(el.containerId) && + getContainerElement(el)?.strokeColor !== el.strokeColor + ) { + return el; + } return hasStrokeColor(el.type) ? newElementWith(el, { strokeColor: value.currentItemStrokeColor,