This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
md-datepicker ignoring required attribute on pristine input #8411
Labels
has: Pull Request
A PR has been created to address this issue
Comments
astynax777
changed the title
md-datepicker ignoring required attribute on pristine form
md-datepicker ignoring required attribute on pristine input
May 11, 2016
Just saw this in the source: I wonder though, was it ever working? I tested it in 1.0.7 and saw it didn't work there. The documentation states it supports required and ng-required:
|
I just have seen this with http://codepen.io/anon/pen/jqoEOG Would be great to see a fix for this. On regular input it works as expected. |
crisbeto
added a commit
to crisbeto/material
that referenced
this issue
Jul 16, 2016
Fixes invalid datepickers not being highlighted when their parent form is submitted. Fixes angular#8411.
crisbeto
added a commit
to crisbeto/material
that referenced
this issue
Jul 16, 2016
Fixes invalid datepickers not being highlighted when their parent form is submitted. Fixes angular#8411.
crisbeto
added a commit
to crisbeto/material
that referenced
this issue
Jul 16, 2016
* Fixes invalid datepickers not being highlighted when their parent form is submitted. * Fixes $mdAria not being imported and causing a JS error occasionally. Fixes angular#8411.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Codepen is here: http://codepen.io/astynax777/pen/ONqQOY
You'll notice that if you submit the form without first selecting and clearing a date, the validation does not fire on the md-datepicker.
I would like to know a workaround for this in the meantime.
AngularJS stack: 1.5.5
Material: 1.1.0-rc4
The text was updated successfully, but these errors were encountered: