khan4019 / tree-grid-directive

Need one or more maintainer for this! comment or email me if you are interested
http://khan4019.github.io/tree-grid-directive/test/treeGrid.html
347 stars 183 forks source link

Multiple instances of the directive sort and expand eachother #58

Closed cdunlap closed 9 years ago

cdunlap commented 9 years ago

When there are multiple instances of the directive in a view, all using different datasets, expanding/collapsing or sorting a column on one will perform the same action on all instances on that page.

Specifically regarding the expand/collapse, it seems like it will happen if there is a row that has the same value in the expanding property column of another tree. It seems like the events aren't being isolated to within a specific instance of the directive.

cdunlap commented 9 years ago

I'm an idiot....

To others possibly having this problem: make sure the data is truely CLONED before assigning it because once the tree grid gets ahold of it, it assigns UID's to everything. So if those same UID's exist in another instance of the tree grid, they will respond to the same events.