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 radiobutton check issue #587

Merged
merged 4 commits into from
Mar 15, 2022
Merged

Conversation

MosheZemah
Copy link
Contributor

Fix issue with radio button needed to be clicked twice

@@ -53,7 +46,7 @@ const RadioButton = forwardRef(
value={value}
name={name}
disabled={disabled}
{...checkedProps}
defaultChecked={checked || defaultChecked}
Copy link
Contributor

Choose a reason for hiding this comment

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

but checked prop is for controlled state. it's means that we want that when clicking on the radiobutton it's state will not changed (only if we changed it by our prop) - and not changed if we click once / twice.

@MosheZemah MosheZemah requested a review from hadasfa March 15, 2022 10:34
@MosheZemah MosheZemah merged commit 9373322 into master Mar 15, 2022
@MosheZemah MosheZemah deleted the bug/moshe/fix_radio_button_checked branch March 15, 2022 14:00
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.

2 participants