Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

fix: update opacity of bound text when opacity of container updated (#5142)

Aakansha Doshi1ed1529f96ee
diff --git a/src/actions/actionProperties.tsx b/src/actions/actionProperties.tsx
index 49efbe45f0..ff407255d5 100644
--- a/src/actions/actionProperties.tsx
+++ b/src/actions/actionProperties.tsx
@@ -485,10 +485,14 @@ export const actionChangeOpacity = register({
trackEvent: false,
perform: (elements, appState, value) => {
return {
- elements: changeProperty(elements, appState, (el) =>
- newElementWith(el, {
- opacity: value,
- }),
+ elements: changeProperty(
+ elements,
+ appState,
+ (el) =>
+ newElementWith(el, {
+ opacity: value,
+ }),
+ true,
),
appState: { ...appState, currentItemOpacity: value },
commitToHistory: true,