OrgChart.js
OrgChart.js copied to clipboard
Failed to creat node TypeError: Cannot read property 'querySelectorAll' of null
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.
Please share your code how you loading children from database to look into the issue...