Bladeren bron

Merge branch 'master' of http://git.onarbooks.com/Klapi/TrapiLib

sxoinas12 5 jaren geleden
bovenliggende
commit
8fe27e359d
2 gewijzigde bestanden met toevoegingen van 1 en 2 verwijderingen
  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