bkrem / react-d3-tree

:deciduous_tree: React component to create interactive D3 tree graphs
https://bkrem.github.io/react-d3-tree
MIT License
1.09k stars 270 forks source link

FR - Descendants remember state #366

Open MakroCZ opened 3 years ago

MakroCZ commented 3 years ago

Are you reporting a bug, or opening a feature request?

Feature request

What is the actual behavior/output?

When collapsing node all descendants are recursively collapsed too (collapsed property set to true)

What is the behavior/output you expect?

Descendants remember their state (collapsed / expanded), ideally as setting (when creating Tree?)

I tested solution with ONLY remembering state and it looked fine, but I am not experienced enough to properly introduce setting variable into project.