-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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.selected(value) does not work with radio buttons holding "value" and "label" #5374
Comments
The radio options' values are converted to strings on creation because the underlying HTML element only supports string values and when attempting to select using We can possibly cast the argument passed to |
Great thanks, & Woops! I think it should be written in the "Description". BTW, the order of arguments of "option" method between createSelect and createRadio is different as follows: Is there any reason about that? |
Yes, I think adding a note about this in the reference would be good.
I'm not exactly sure why that is the case. It certainly can be confusing but unfortunately for backwards compatibility reasons we can't change it for now (until the next major release). |
Great thanks,
I think the "name" parameter is confusing. It should be "label" which is used in createRadio. Thanks, |
Any work being done on this as of yet? 💪 |
@unjust Not that I know of. You can put together a PR for this if you wish. |
@all-contributors please add @KouichiMatsuda for bug |
I've put up a pull request to add @KouichiMatsuda! 🎉 |
Most appropriate sub-area of p5.js?
Details about the bug:
Hi all,
In the following code, the "red" button is not selected. Am I missing something?
The text was updated successfully, but these errors were encountered: