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: made radio-button-group a controlled component #2499

Merged
merged 2 commits into from
Aug 12, 2020

Conversation

rbarbazz
Copy link
Contributor

@rbarbazz rbarbazz commented Aug 7, 2020

Closes #2454.

To ensure the correct radio button is selected I made the component controlled by using the checked prop.
As expected, the switch doesn't update when you cancel.

Updated Storybook as well.

@netlify
Copy link

netlify bot commented Aug 7, 2020

Deploy preview for insomnia-storybook ready!

Built with commit a155029

https://deploy-preview-2499--insomnia-storybook.netlify.app

Copy link
Contributor

@develohpanda develohpanda left a comment

Choose a reason for hiding this comment

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

LGTM - thanks for the PR!

@rbarbazz
Copy link
Contributor Author

@develohpanda Thanks for labelling "Good First Issue", made it easy to know where to start :)

Copy link
Contributor

@sonicyeti sonicyeti left a comment

Choose a reason for hiding this comment

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

Love it, addressed a known issue and covered the story as well. LGTM!

@sonicyeti sonicyeti merged commit 48783e5 into Kong:develop Aug 12, 2020
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.

Cancelling lint warning still changes switch from design to debug
3 participants