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

native required radio button is always invalid #2028

Closed
jimmywarting opened this issue Feb 28, 2019 · 0 comments · Fixed by #2063
Closed

native required radio button is always invalid #2028

jimmywarting opened this issue Feb 28, 2019 · 0 comments · Fixed by #2063

Comments

@jimmywarting
Copy link

Steps to reproduce

  1. Create a form with a required radio button
<form>
  <md-radio name="foo" required v-model="radio">foo</md-radio>
  <md-button type="submit">submit</md-button>
</form>
  1. select (check) the radio button
  2. submit

What is expected?

the form should be submitted

What is actually happening?

Nothing! I'm using the constraint validation and the form is still invalid, since the actual radio button is never checked. Only the model value is synced not the checked state on the actual <input type="radio">.

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 a pull request may close this issue.

1 participant