|
@@ -111,10 +111,9 @@ export default class CoreSystem {
|
|
}
|
|
}
|
|
|
|
|
|
const findReactElement = (node) => {
|
|
const findReactElement = (node) => {
|
|
- console.log("Node",node);
|
|
|
|
for (var key in node) {
|
|
for (var key in node) {
|
|
if (key.startsWith("__reactInternalInstance$")) {
|
|
if (key.startsWith("__reactInternalInstance$")) {
|
|
- return node[key]._debugOwner.stateNode;
|
|
|
|
|
|
+ return (node[key]._debugOwner && node[key]._debugOwner.stateNode) || (node[key].stateNode);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return null;
|
|
return null;
|