dabeng / OrgChart.js

It's a simple and direct organization chart plugin. Anytime you want a tree-like chart, you can turn to OrgChart.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot load children nodes when vertical chart is used

isnanmulia opened this issue · comments

I'm trying to create a structure such that initially it has depth of 2, vertical depth of 2, and every leaf nodes will load its children nodes from database when I click "+" icon.
image

I have tried using the horizontal version, and the children nodes of leaf nodes are successfully loaded from database when I click "fa-chevron-down" icon.
image

But when I change the structure into vertical (see first image), the chart isn't do the same thing. Instead, it throws error Uncaught TypeError: Cannot read property 'querySelectorAll' of null.
image

Any workaround for this issue? Thanks before.