Skip to content

Commit

Permalink
fix: update opacity of bound text when opacity of container updated (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ad1992 committed May 4, 2022
1 parent b30066c commit 1ed1529
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/actions/actionProperties.tsx
Expand Up @@ -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,
Expand Down

2 comments on commit 1ed1529

@vercel
Copy link

@vercel vercel bot commented on 1ed1529 May 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

excalidraw-package-example – ./src/packages/excalidraw

excalidraw-package-example.vercel.app
excalidraw-package-example-excalidraw.vercel.app
excalidraw-package-example-git-master-excalidraw.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 1ed1529 May 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.