Skip to content

Commit

Permalink
Merge pull request #2013 from framer/fix/restore-css-vars
Browse files Browse the repository at this point in the history
Fix restore CSS vars
  • Loading branch information
mergetron[bot] authored Mar 15, 2023
2 parents 7531411 + ddebec1 commit 19a7745
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,12 @@ export function resolveCSSVariables(
// Clone target if it hasn't already been
target[key] = resolved

if (!transitionEnd) transitionEnd = {}

// If the user hasn't already set this key on `transitionEnd`, set it to the unresolved
// CSS variable. This will ensure that after the animation the component will reflect
// changes in the value of the CSS variable.
if (transitionEnd && transitionEnd[key] === undefined) {
if (transitionEnd[key] === undefined) {
transitionEnd[key] = current
}
}
Expand Down

0 comments on commit 19a7745

Please sign in to comment.