mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Don't ignore children of non-ancestor ID nodes in findComponentRoot.
This commit is contained in:
committed by
Paul O’Shannessy
parent
067fe27699
commit
5c6e59f53c
@@ -302,6 +302,11 @@ var ReactInstanceHandles = {
|
||||
firstChildren.length = childIndex = 0;
|
||||
firstChildren.push(child.firstChild);
|
||||
break;
|
||||
} else {
|
||||
// TODO This should not be necessary if the ID hierarchy is
|
||||
// correct, but is occasionally necessary if the DOM has been
|
||||
// modified in unexpected ways.
|
||||
firstChildren.push(child.firstChild);
|
||||
}
|
||||
} else {
|
||||
// If this child had no ID, then there's a chance that it was
|
||||
|
||||
Reference in New Issue
Block a user