Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(bug): Datepicker updates a model twice when clearing an input #2642

Closed
AbakumovAlexandr opened this issue Aug 24, 2018 · 0 comments · Fixed by #2684
Closed

(bug): Datepicker updates a model twice when clearing an input #2642

AbakumovAlexandr opened this issue Aug 24, 2018 · 0 comments · Fixed by #2684

Comments

@AbakumovAlexandr
Copy link

Bug description:

When completely clearing text in the input via Backspace\Del buttons, Datepicker immediately updates a model with null value and after that the second time when losing focus.

Simple input does not do so the second time on focus lost.

Link to minimally-working plunker that reproduces the issue:

Stackblitz.

Version of Angular, ng-bootstrap, and Bootstrap:

Angular: 6.1.2

ng-bootstrap: 3.1.0

Bootstrap: 4.1.1

@AbakumovAlexandr AbakumovAlexandr changed the title (bug): Datepicker emits value change twice when clearing an input (bug): Datepicker updates a model twice when clearing an input Aug 24, 2018
divdavem added a commit to divdavem/ng-bootstrap that referenced this issue Sep 4, 2018
@maxokorokov maxokorokov added this to the 3.2.1 milestone Sep 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants