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

Datepicker: (dateSelect) not firing #2278

Closed
ryu323 opened this issue Apr 3, 2018 · 1 comment
Closed

Datepicker: (dateSelect) not firing #2278

ryu323 opened this issue Apr 3, 2018 · 1 comment

Comments

@ryu323
Copy link

ryu323 commented Apr 3, 2018

Bug description:

Regarding:
https://ng-bootstrap.github.io/#/components/datepicker/api#NgbInputDatepicker

Not sure if I'm missing something, but (dateSelect) does not seem to fire when a date is selected from the datepicker.

Link to minimally-working plunker that reproduces the issue:

http://plnkr.co/edit/tPNBc3ROOD2Cna7no6Ro?p=preview

Version of Angular, ng-bootstrap, and Bootstrap:

Angular: 5.2.9

ng-bootstrap: 1.1.0

Bootstrap: 4.0.0

@maxokorokov
Copy link
Member

Thanks, this is the case when all unit tests are fine, but integration is missing...

Both (ngModelChange) and (selectDate) are emitted, but looks like input datepicker first gets the model change and kills the datepicker before receiving the select event. Will see how to fix soon.

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

No branches or pull requests

3 participants