Don't ignore children of non-ancestor ID nodes in findComponentRoot.

This commit is contained in:
Ben Newman
2013-07-10 14:58:57 -07:00
committed by Paul O’Shannessy
parent 067fe27699
commit 5c6e59f53c
+5
View File
@@ -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