Skip to content
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): sync expanded prop and state #6791

Conversation

emyarod
Copy link
Member

@emyarod emyarod commented Sep 8, 2020

Closes #6788

This PR syncs the tree node expanded prop and state to allow for controlled mode expansion/collapse

Changelog

New

  • TreeView story with global expansion controls

Changed

  • TreeNode expansion prop and state sync

Testing / Reviewing

Confirm the treeview story with expansion controls functions as expected and the existing functionality has no regressions

@netlify
Copy link

netlify bot commented Sep 8, 2020

Deploy preview for carbon-elements ready!

Built with commit 38be518

https://deploy-preview-6791--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Sep 8, 2020

Deploy preview for carbon-components-react ready!

Built without sensitive environment variables with commit 38be518

https://deploy-preview-6791--carbon-components-react.netlify.app

Copy link
Collaborator

@tw15egan tw15egan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 ✅

@kodiakhq kodiakhq bot merged commit 127b923 into carbon-design-system:master Sep 9, 2020
@emyarod emyarod mentioned this pull request Sep 9, 2020
36 tasks
@emyarod emyarod deleted the 6788-treenode-sync-expanded-props-state branch September 11, 2020 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Changing isExpanded props in TreeNode to false doesn't change TreeNode inner state
3 participants