-
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
fix(TreeNode): preserve nested node expand state #17630
fix(TreeNode): preserve nested node expand state #17630
Conversation
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for v11-carbon-react ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #17630 +/- ##
==========================================
- Coverage 77.07% 77.07% -0.01%
==========================================
Files 409 409
Lines 14021 14019 -2
Branches 4327 4325 -2
==========================================
- Hits 10807 10805 -2
Misses 3043 3043
Partials 171 171 ☔ View full report in Codecov by Sentry. |
3ece9ee
to
2918b76
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
2024-10-07.at.13.50.21-components.TreeView.-.Default.Storybook-Google.Chrome.mp4
af1cd1b
…m#17630) * fix(TreeNode): preserve nested node expand state * fix(TreeView): prevent focus on hidden child nodes
Closes #17221
This PR updates the rendering logic of parent tree nodes. The nodes are no longer removed from the DOM when upstream nodes are collapsed so the expansion state of nested parent nodes is preserved
Changelog
Changed
Testing / Reviewing
confirm that expanded state of nested parent nodes remains even when its own parent nodes are collapsed/expanded