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

This commit is contained in:
Aakansha Doshi 2022-05-04 14:29:05 +05:30 committed by GitHub
parent b30066ca19
commit 1ed1529f96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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