patternfly / patternfly-bootstrap-treeview

Tree View for Twitter Bootstrap -
http://jonmiles.github.io/bootstrap-treeview
Apache License 2.0
200 stars 105 forks source link

addNode error #79

Closed renanyoy closed 6 years ago

renanyoy commented 6 years ago

addNode returns TypeError: Cannot read property 'visible' of undefined bootstrap-treeview.js:606 at Tree._setVisible (/Volumes/ssd/git/a2ds/server/office/public/libs/treeview/dist/bootstrap-treeview.js:606:40) at Tree.<anonymous> (/Volumes/ssd/git/a2ds/server/office/public/libs/treeview/dist/bootstrap-treeview.js:572:12) at Object.e (/Volumes/ssd/git/a2ds/server/office/public/assets/lib/jquery/jquery.min.js:2:3556) at Function.each (/Volumes/ssd/git/a2ds/server/office/public/assets/lib/jquery/jquery.min.js:2:2716) at Tree._setExpanded (/Volumes/ssd/git/a2ds/server/office/public/libs/treeview/dist/bootstrap-treeview.js:571:8) at Tree.<anonymous> (/Volumes/ssd/git/a2ds/server/office/public/libs/treeview/dist/bootstrap-treeview.js:1343:12) at Array.e (/Volumes/ssd/git/a2ds/server/office/public/assets/lib/jquery/jquery.min.js:2:3556) at i (/Volumes/ssd/git/a2ds/server/office/public/assets/lib/jquery/jquery.min.js:2:28018)

renanyoy commented 6 years ago

new node is just {text:"label"}

renanyoy commented 6 years ago

jquery: 3.2.1 bootstrap 4.0.0

skateman commented 6 years ago

The library doesn't support bootstrap 4 and for now there's no plan to do so.

https://github.com/patternfly/patternfly-bootstrap-treeview/issues/78

renanyoy commented 6 years ago

can you point me a bootstrap 4.0 treeview library, please ?

skateman commented 6 years ago

Sorry, but I have no information about such library.

renanyoy commented 6 years ago

ok, thanks maybe you could add an alert on the readme that the library isn't compatible with bootstrap 4.0 because for now it's just "works with bootstrap >= 3.0.0"