Open answerquest opened 4 years ago
Hi, update: I found a workaround. After your simTree is made and ready, run these lines in JS for all the parent nodes you want checked:
document.querySelector(`#tree > ul > li:nth-child(1) > a`).click();
loop the number in nth-child(1)
from 1 to n (or do selectively - you should know the order in which your parent nodes are).
Upon adding
"checked": "checked"
setting to either parent or child nodes, this error happens and only the first node is checked; the error prevents from checking the other nodes.