patternfly-bootstrap-treeview icon indicating copy to clipboard operation
patternfly-bootstrap-treeview copied to clipboard

Error on addnode

Open edivancastro opened this issue 6 years ago • 1 comments

$('#treeview').treeview({data:[{text:"pre Node"}]});
$('#treeview').treeview(true).addNode({text:"New Node"});

The Node is added but has a error on select node

https://stackoverflow.com/questions/54204024/jquery-bootstrap-treeview-error-on-addnode

edivancastro avatar Jan 15 '19 16:01 edivancastro

Not sure if you are still having this error but I just ran into it myself and managed to fix it by initializing the treeview with data set to null, and then adding the data to the empty tree, hopefully that helps.

dverenna avatar Jun 14 '19 18:06 dverenna