iVantage / angular-ivh-treeview

A treeview for AngularJS with filtering and checkbox support.
http://ivantage.github.io/angular-ivh-treeview/
MIT License
238 stars 89 forks source link

Expand to depth should reset expanded states before being applied. #175

Open jkrot opened 7 years ago

jkrot commented 7 years ago

So basically when you load a treeview with a data source with the config expandToDepth it does not reset the expanded tree structure before being applied. So if you were using existing data for a treeview and trees are already expanded more depth will be shown then desired. The entire tree should be collapsed before the expand is applied to be consistent, or at least allow this as an option.