This repository has been archived by the owner on May 29, 2019. It is now read-only.
uib-datepicker using new data() on "ngModelCtrl.$modelValue" in UibDatepickerController causes error in Internet Explorer #5865
Labels
Milestone
We use uib-datepicker with popup where we allow the user the enter a date manually.
The dateformat ('d MMMM y') has a year with a single y so a single-digit year can also be entered as a year.
On load we set today's date with a four-digit year. When you change the year to have only 2 digits the datepicker renders with all null and nan values, see attached screenshot. This happens only on Internet Explorer (tested on 11). Chrome and FireFox do not have this issue.
Plunker: http://plnkr.co/edit/sGbHK8N4C0EAmpyT9FB9?p=preview
Reproduce:
In the "this._init" function in "UibDatepickerController" the following lines cause the error in IE.
We have modified these like below to fix the issue.
The text was updated successfully, but these errors were encountered: