You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
List the affected versions of AngularJS, Material, OS, and browsers
AngularJS: 1.8.2
AngularJS Material: 1.2.3
OS: All
Browsers: All
Screen Readers:
Add anything else we should know
This was just fixed for string being the default last version.
I added the below to that ticket, but I added it too late. I should have just opened a new ticket. Sorry about that.
When DatePickerCtrl.prototype.updateErrorState is called with a moment date if (this.dateUtil.isValidDate(date)) { is false
So this.ngModelCtrl.$setValidity('valid', date == null); runs and the ngModel ctrl valid key is set to false.
The text was updated successfully, but these errors were encountered:
Bug Report
Demo URL (required)*: https://datepicker-invalid-value-on-first-load-from-string-12075-pskwl4.stackblitz.io
Detailed Reproduction Steps
List the affected versions of AngularJS, Material, OS, and browsers
Add anything else we should know
This was just fixed for string being the default last version.
I added the below to that ticket, but I added it too late. I should have just opened a new ticket. Sorry about that.
When
DatePickerCtrl.prototype.updateErrorState
is called with a moment dateif (this.dateUtil.isValidDate(date)) {
is falseSo
this.ngModelCtrl.$setValidity('valid', date == null);
runs and the ngModel ctrl valid key is set to false.The text was updated successfully, but these errors were encountered: