-
Notifications
You must be signed in to change notification settings - Fork 980
[Checkbox] Reset checkbox checked state when form is reset #1733
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
[Checkbox] Reset checkbox checked state when form is reset #1733
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution @raulburigo!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great @raulburigo, only a few small tweaks and we can get this merged!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Congrats on landing your first PR!
@raulburigo with React v19, submitting a form with a defaultValue and then on reset setting to the initial value causes some weird race-condition behavior See the related discussion here: facebook/react#29034 I'm proposing a potential backwards-compatible next-move: Introduce an opt-in new prop, like wdyt? |
Implements #983