-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Collapse open nodes when opening new one #46
Comments
I would love this feature as well. |
here is the work around solution to achieve this <Tree data={phaseData} ref="myRef" handleClick(nodeObj, cont) {
} |
@anilramavtar
Any ideas off the top of your head? |
I corrected the code above and it's working now. import clone from 'clone';
|
cool, thanks a lot! |
Hey everyone, I had some spare time today and @Dienert's revamp of the workaround reminded me to finally get this done. So thank you to @Dienert and @anilramavtar for the workarounds first of all, but you should be able to simply use (If there are issues with the implementation, please open a separate bug ticket so we can close out this feature request ✌️) |
Yes, tested and it's working. Thanks! |
The ability to collapse all open nodes on the same depth as a new one is opened. Would be a great feature as the tree gets large with lots of traversing nodes.
The text was updated successfully, but these errors were encountered: