File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -750,7 +750,7 @@ We collect DOM operations on children in a list so we can execute them in batch:
750
750
// If we can't update an existing instance, we have to unmount it
751
751
// and mount a new one instead of it.
752
752
if (! canUpdate) {
753
- var prevNode = prevChild .node ;
753
+ var prevNode = prevChild .getHostNode () ;
754
754
prevChild .unmount ();
755
755
756
756
var nextChild = instantiateComponent (nextChildren[i]);
@@ -770,12 +770,12 @@ We collect DOM operations on children in a list so we can execute them in batch:
770
770
771
771
// Finally, unmount any children that don't exist:
772
772
for (var j = nextChildren .length ; j < prevChildren .length ; j++ ) {
773
- var prevChild = prevRenderedChildren[j];
774
- var node = prevChild .node ;
775
- prevChild .unmount ();
773
+ var prevChild = prevRenderedChildren[j];
774
+ var node = prevChild .getHostNode () ;
775
+ prevChild .unmount ();
776
776
777
- // Record that we need to remove the node
778
- operationQueue .push ({type: ' REMOVE' , node});
777
+ // Record that we need to remove the node
778
+ operationQueue .push ({type: ' REMOVE' , node});
779
779
}
780
780
781
781
// Point the list of rendered children to the updated version.
You can’t perform that action at this time.
0 commit comments