Skip to content
This repository has been archived by the owner on Feb 5, 2025. It is now read-only.

Error on addnode #94

Open
edivancastro opened this issue Jan 15, 2019 · 1 comment
Open

Error on addnode #94

edivancastro opened this issue Jan 15, 2019 · 1 comment

Comments

@edivancastro
Copy link

edivancastro commented Jan 15, 2019

$('#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

@dverenna
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants