Nikatlas 5 years ago
parent
commit
29c297f6cb
2 changed files with 1 additions and 2 deletions
  1. 0 0
      dist/lib/systems/CoreSystem.js
  2. 1 2
      lib/systems/CoreSystem.js

File diff suppressed because it is too large
+ 0 - 0
dist/lib/systems/CoreSystem.js


+ 1 - 2
lib/systems/CoreSystem.js

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

Some files were not shown because too many files changed in this diff