-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Bug]: Treeview - opened node do not remain open even when parent is collapsed and then opened again #17221
Comments
Hey @rcsatheeshkumar |
Hey @guidari. In the link that you provided opening parent node also opens previously collapsed sub nodes: Nagranie.z.ekranu.2024-08-22.o.14.31.58.mov |
You are right. |
I think it is a bug since in the design spec of TreeView (#5180) it was mentioned that "opened nodes remain open even if their parent is collapsed and then opened again. The nodes should remain in the same open or closed state." |
I think it could have been implemented differently here. As default, those sub-nodes should be closed. If the user interacts with the sub-nodes, then closing the parent, those sub-nodes stay as they are. Here is an example: Screen.Recording.2024-08-22.at.12.38.50.PM.mov |
Can you estimate when this issue will be resolved? |
Is there any significant progress in this issue? |
Package
@carbon/react
Browser
Chrome, Safari, Firefox, Edge
Package version
1.63.2
React version
18.2.0
Description
Have my opened nodes remain open even if their parent is collapsed and then opened again. The nodes should remain in the same open or closed state.
Reproduction/example
https://stackblitz.com/edit/github-3xhbda-38shez?file=src%2FApp.jsx,package.json
Steps to reproduce
Suggested Severity
Severity 3 = User can complete task, and/or has a workaround within the user experience of a given component.
Application/PAL
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: