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

ui v2: fix accordion bug #775

Merged
merged 2 commits into from
Dec 10, 2020
Merged

ui v2: fix accordion bug #775

merged 2 commits into from
Dec 10, 2020

Conversation

danielhochman
Copy link
Collaborator

Description

if defaultExpanded was true, the value would always be true so the accordion would never collapse. useControlled properly manages the state without the need for the OR to set the initial val.

Testing Performed

Storybook.

@danielhochman danielhochman requested a review from a team as a code owner December 10, 2020 20:44
@danielhochman danielhochman merged commit f3053e8 into UIV2 Dec 10, 2020
@danielhochman danielhochman deleted the ui-v2-accordion-fix branch December 10, 2020 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant