The library for web and native user interfaces.
Don't ignore children of non-ancestor ID nodes in findComponentRoot.
Ben Newman committed
Jul 10, 2013 at 14:44 UTC
5c6e59f53cd95dc00fd73908d89b5afe083fa90b
1 file changed
+5
src/core/ReactInstanceHandles.js
+5
@@ -302,6 +302,11 @@ var ReactInstanceHandles = {
302
firstChildren.length = childIndex = 0;
303
firstChildren.push(child.firstChild);
304
break;
305
+ } else {
306
+ // TODO This should not be necessary if the ID hierarchy is
307
+ // correct, but is occasionally necessary if the DOM has been
308
+ // modified in unexpected ways.
309
+ firstChildren.push(child.firstChild);
310
}
311
} else {
312
// If this child had no ID, then there's a chance that it was