Skip to content
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

Closed
jongunnip opened this issue May 8, 2015 · 1 comment

Comments

@jongunnip
Copy link

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.

@wesleycho
Copy link
Contributor

I believe this is now fixed in master since #3759 is merged - feel free to open a new issue if this is not the case.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants