-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Two-way binding for grouped radio inputs #311
Comments
How is |
There's also |
implement bind:group for radio input groups
Via #10 / #309. In Ractive, you could do this:
The
name='{{selected}}'
sort of makes sense, in that a sharedname
identifies the radios as belonging to the same group, but only sort of, since you're not actually binding to the name.A possible alternative — keen to hear what people think:
In other words,
selected
would take the value of whichever radio in the group of those withname='whatever'
was checked.The text was updated successfully, but these errors were encountered: