Skip to content
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: binding input radio group #399 #403

Merged
merged 2 commits into from
Mar 26, 2017
Merged

Fix: binding input radio group #399 #403

merged 2 commits into from
Mar 26, 2017

Conversation

cristinecula
Copy link
Contributor

I have removed the code that sets the radio input's state to unchecked. Browsers already toggle the state correctly for members of the same radiogroup.

@Rich-Harris Rich-Harris merged commit 5d697ec into sveltejs:master Mar 26, 2017
@Rich-Harris
Copy link
Member

Thank you! Would have merged this sooner but I was struggling to figure out how it worked... in the test, the browser can't know which radios belong to the same group (because that's determined by the name attribute). But of course the others with the same binding group are being unchecked because they no longer satisfy the condition. D'oh!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants