-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
md-datepicker - should emit selectedChanged when changed by input #6000
Comments
For me, it's the expected behavior. To detect input changes you should use |
I think this is also pretty reasonable. Although I can also the confusion that people expect the |
If it does remain as-is, the jsdoc comment should probably note that it emits when change comes from datepicker specifically. Currently:
|
@willshowell Yeah that would be for sure. If the behavior stays the same, the docs need to be more explicit about it. |
@rafaelss95 (ngModelChange) does trigger even with invalid date, and (change) only triggers on blur or enter key. |
* Deprecates the `selectedChanged` output on the datepicker component in favor of the `dateChange` and `dateInput` bindings on the input element. Closes angular#6000
* Deprecates the `selectedChanged` output on the datepicker component in favor of the `dateChange` and `dateInput` bindings on the input element. Closes #6000
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
Bug
What is the expected behavior?
The name and documentation suggests that selectedChanged should emit even when the date selected is changed by input text
What is the current behavior?
It is emitted only by the calendar
Plunker template: http://plnkr.co/edit/2TqobMq2CJgm7LJtlK3j
The text was updated successfully, but these errors were encountered: