constantin-p / cp-react-tree-table

A fast, efficient tree table component for ReactJS.
https://constantin.software/cp-react-tree-table
MIT License
94 stars 27 forks source link

expandAncestors expands all nodes #55

Open justin-elias opened 1 year ago

justin-elias commented 1 year ago

When calling expandAncestors on a single node, all nodes in the tree with children are expanded. I would expect only nodes that are direct ancestors of the node passed would be expanded.

Here is an example of all nodes being expanded. jsfiddle link