Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants