This repository was archived by the owner on May 29, 2019. It is now read-only.
datepicker 0.13.0 does not allow model updates after a parse error for certain dates when ng-model-options updateOn: blur is used #3643
Milestone
Using 0.13.0 of datepicker with ng-model-options="{updateOn: 'blur'}"
When entering a date that causes a parse error (e.g. 'abc'), subsequently entering a 10-character 'mm/dd/yyyy' date (e.g. 01/01/2014) will not update the $modelValue.
Entering an 8-character date (e.g. 1/1/2014) or selecting the datepicker in the calendar does update $modelValue.
Plunkr
This seems related to [https://github.com//issues/3609], but I wasn't sure if it was the same issue. As an aside, the $invalid flag isn't being set on parse errors.
Would be interested if anyone is aware of a workaround.
The text was updated successfully, but these errors were encountered: