This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27.4k
input[type="date"] validity doesn't change when min/max change #6755
Milestone
Comments
scottopherson
changed the title
input[type="date"] min/max as date objects
input[type="date"] validity doesn't change when min/max change
Mar 19, 2014
I've made some progress on this and my local code works for string-based date values (the first example in your demo). But the pure date object min/max value stuff doesn't work yet. I will resume the bug fix next week once I get someone to help me understand |
matsko
added a commit
to matsko/angular.js
that referenced
this issue
Sep 3, 2014
…nge for date inputs Closes angular#6755
matsko
added a commit
to matsko/angular.js
that referenced
this issue
Sep 3, 2014
…nge for date inputs Closes angular#6755
matsko
added a commit
to matsko/angular.js
that referenced
this issue
Sep 4, 2014
…nge for date inputs Closes angular#6755
matsko
added a commit
to matsko/angular.js
that referenced
this issue
Sep 4, 2014
Due to the nature of how date objects are rendered when JSON.stringify is called, the resulting string contains two sets of quotes surrounding it. This commit fixes that issue. Closes angular#6755
matsko
added a commit
that referenced
this issue
Sep 4, 2014
…inputs Due to the nature of how date objects are rendered when JSON.stringify is called, the resulting string contains two sets of quotes surrounding it. This commit fixes that issue. Closes #6755
This should now be working on master. |
PS your example code should be |
You're better off using ng-min and ng-max since the date won't be converted to string and back like what happens with min and max while using expressions. |
3 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
While creating the jsfiddle example in my previous issue, I noticed that the validity of the date input doesn't get updated when the values of min/max change.
http://jsfiddle.net/va4kb/2/
Might just need a fix similar to: #6369
Edit:
Though, the validity of the date input does get updated if you make a change to the input after min/max are changed.
The text was updated successfully, but these errors were encountered: