OrgChart.js icon indicating copy to clipboard operation
OrgChart.js copied to clipboard

Failed to creat node TypeError: Cannot read property 'querySelectorAll' of null

Open kinitkit opened this issue 8 years ago • 1 comments

Failed to creat node TypeError: Cannot read property 'querySelectorAll' of null

Array.from(temp[2].children).forEach((el) => { //console.log(el.querySelector('tr')); Array.prototype.push.apply(descendants, Array.from(el.querySelector('tr').querySelectorAll('.node')).filter((el) => { console.log(el); return that._isVisible(el); })); });

This occurs every time I press the down button to load the children from the database. the data gets back fine but it suddenly breaks or shows nothing after pressing it.

kinitkit avatar May 15 '17 06:05 kinitkit

Please share your code how you loading children from database to look into the issue...

logicplayer1 avatar Jul 18 '18 12:07 logicplayer1