Skip to content

Commit 11bd719

Browse files
hybridherbstiSvmo
authored andcommitted
fix: property binding should not fall back to root node on incorrect path names (#25329)
1 parent 087fb45 commit 11bd719

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/animation/PropertyBinding.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class PropertyBinding {
107107
this.path = path;
108108
this.parsedPath = parsedPath || PropertyBinding.parseTrackName( path );
109109

110-
this.node = PropertyBinding.findNode( rootNode, this.parsedPath.nodeName ) || rootNode;
110+
this.node = PropertyBinding.findNode( rootNode, this.parsedPath.nodeName );
111111

112112
this.rootNode = rootNode;
113113

@@ -423,7 +423,7 @@ class PropertyBinding {
423423

424424
if ( ! targetObject ) {
425425

426-
targetObject = PropertyBinding.findNode( this.rootNode, parsedPath.nodeName ) || this.rootNode;
426+
targetObject = PropertyBinding.findNode( this.rootNode, parsedPath.nodeName );
427427

428428
this.node = targetObject;
429429

0 commit comments

Comments
 (0)