Skip to content

Commit ff80093

Browse files
committed
fix: call computeGoalValue from ensureAnimated
This ensures the "from value" can be interpolated when it's a string
1 parent a1507f1 commit ff80093

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/Controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export class Controller<State extends Indexable = any> {
239239
if (animated && shouldUpdate && this.animations[key].isNew) {
240240
// Ensure the initial value is up-to-date.
241241
if (animated.setValue) {
242-
animated.setValue(value)
242+
animated.setValue(computeGoalValue(value))
243243
} else {
244244
// Derived nodes need to be swapped out.
245245
animated = null

0 commit comments

Comments
 (0)