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

feat(datepicker): add 'dateSelect' output for date selection listening #2254

Conversation

maxokorokov
Copy link
Member

@maxokorokov maxokorokov commented Mar 23, 2018

Forwards date selection from datepicker to input-datepicker.
Allows to distinguish between user date selection and form control changes.

<!-- when form control value changes, ex. input changes -->
<input ngbDatepicker (ngModelChange)="..." />

<!-- emit on datepicker clicks, keyboard date selection, same date selection twice -->
<input ngbDatepicker (dateSelect)="..." />

Fixes #2181

@pkozlowski-opensource
Copy link
Member

LGTM

@strizzwald
Copy link

Any idea when this feature will be merged in? I've ran in to a scenario where I need this functionality.

@arulananth
Copy link

Forwards date selection from datepicker to input-datepicker. Allows to distinguish between user date selection and form control changes.

<!-- when form control value changes, ex. input changes -->
<input ngbDatepicker (ngModelChange)="..." />

<!-- emit on datepicker clicks, keyboard date selection, same date selection twice -->
<input ngbDatepicker (dateSelect)="..." />

Fixes #2181

Mobile browser not getting past date.

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

Successfully merging this pull request may close these issues.

(select) event for NgbInputDatepicker
4 participants