-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Radio buttons not working with numeric value #273
Comments
What framework are you using? I am happy to share a working example from our playground with you. |
I'm using SolidJS. Right, in the StackBlitz example above, I used the playground as the basis. The issue is that when I use |
I don't think |
I see. Would a PR that implements the conversion be welcomed? I think this is an unnecessary caveat |
No, because I plan to rewrite the library. I will take this into account when rewriting. For now, I recommend to stick with |
I reopen it so that I don't forget this when rewriting the library. |
Glad I found this. I got stuck on this for a while this morning. |
I've read the docs and implemented a form with radio buttons, but when you click on a radio button, the form state is not updated.
Here is a simplified code example.
Manually adding
onChange={(e) => setValue(radioForm, 'entityID', parseInt(e.target.value))}
to the input fixes the issue, but I'm guessing that's not the correct use, since no other input type requires manually setting the new value.The full example is available on Stackblitz.
Is this a bug?
The text was updated successfully, but these errors were encountered: