Skip to content

Adding disabled state #11

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

ponchautf
Copy link

Hi,
I added a disabled state (based on @khofesh PR #4 )
I also updated radio color to reflect the disabled state.

Add disabled prop
update color on deactivate
Copy link

@tomisu tomisu left a comment

Choose a reason for hiding this comment

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

This look good. It's exactly what I need too!

This feature allow to reset the current choice (no radio will be selected).
to enable this, add a ref to the component and call reference.current.reset();
Adding setactive feature
fix wrong copy paste on setactive
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.

2 participants