Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

uib-datepicker-popup: input is marked as invalid when you quickly change value in it #5647

Closed
SlippySken opened this issue Mar 17, 2016 · 2 comments

Comments

@SlippySken
Copy link

I have the same problem as stated in #5625 .
The problem occurs on the sample page https://angular-ui.github.io/bootstrap/#/datepicker and in my application. When you change the date really fast from '17-March-2016' to '17-March-2015' by pressing backspace and then 5, the input is marked as invalid. I tried to reproduce this behaviour with my code and with the code on the sample page (by pressing "edit in plunkr") in a plunkr, but there it won't occur. I think the timing in plunkr is not the same as in a real application, because on your sample page the problem occurs.

Version of Angular, UIBS, and Bootstrap

Angular: 1.5.0
UIBS: 1.2.4
Bootstrap: 3.3.6
Browser: Firefox 44.0.2

@wesleycho
Copy link
Contributor

One can use the debounce option in ng-model-options for this - see here for an example.

@SlippySken
Copy link
Author

ah, thanks :). Now it works :).

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

No branches or pull requests

3 participants