-
Notifications
You must be signed in to change notification settings - Fork 1k
Fix radio button null element default prop to use correct input #10510
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 radio button null element default prop to use correct input #10510
Conversation
Thanks for the PR @jason-curtis |
Understood. Let's see if I get to the tests before a maintainer does! |
Holy cow I can't believe this has been in here like this for so long without someone noticing! Thanks for this fix @jason-curtis! |
Hey @jason-curtis, I'm aiming to try get this one in sometime this week. If you want to add tests to it then I can hold off but otherwise I'll get to it in the next couple days. |
Go ahead. Thank you for checking! My current project has progressed past
using the scaffolding heavily so I can’t prioritize it right now.
Iirc, I think I was having problems using the null state on these controls.
Make sure to check that you can actually submit a null value from the front
end.
<https://optionzero.co>
…On Wed, May 8, 2024 at 12:03 AM Josh GM Walker ***@***.***> wrote:
Hey @jason-curtis <https://github.com/jason-curtis>, I'm aiming to try
get this one in sometime this week. If you want to add tests to it then I
can hold off but otherwise I'll get to it in the next couple days.
—
Reply to this email directly, view it on GitHub
<#10510 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAZPVUYNZXSUVA65LBIUF2LZBHE4JAVCNFSM6AAAAABGXNR3U2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJZHA4DGMJRG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Previously, radio buttons always had the first element that referred to `props.spot.spotType`: ``` <RadioField id=... name=... defaultValue=... defaultChecked={!props.spot?.spotType} className="rw-input" errorClassName="rw-input rw-input-error" /> ``` In actuality, instead of "spot" and "spotType" we should be using the actual name of the model and column! --------- Co-authored-by: Josh GM Walker <[email protected]>
Previously, radio buttons always had the first element that referred to `props.spot.spotType`: ``` <RadioField id=... name=... defaultValue=... defaultChecked={!props.spot?.spotType} className="rw-input" errorClassName="rw-input rw-input-error" /> ``` In actuality, instead of "spot" and "spotType" we should be using the actual name of the model and column! --------- Co-authored-by: Josh GM Walker <[email protected]>
Previously, radio buttons always had the first element that referred to
props.spot.spotType
:In actuality, instead of "spot" and "spotType" we should be using the actual name of the model and column!