Components: No event gets fired for mat-datepicker popup close (for the same day)

Created on 8 Oct 2017  路  4Comments  路  Source: angular/components

Bug, feature request, or proposal:

There should be an event that is fired upon closing the datepicker popup. At the moment dateChanged event is getting fired anytime a date changes but not when the same date is selected.

What is the expected behavior?

I expect at least there is an event that gets fired upon closing the datepicker's popup for the same day.

What is the current behavior?

No events fired upon closing the datepicker's popup for the same day.

What is the use-case or motivation for changing an existing behavior?

This are important in many scenarios. For example, I'm developing a date-time-picker and I show the time picker upon closing the datepicker's popup. The problem happens when I want to select a different time on the same day which is already selected. I click on the date-picker, select the same day and the datepicker's popup gets closed but there is no way I get notified because the dateChanged only fired when it's not the same day.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

All

Is there anything else we should know?

No

has pr help wanted

Most helpful comment

Sounds like a reasonable thing to add, <mat-select> has onOpen and onClose events, should probably use the same names here

All 4 comments

Also on r/Angular2.

cc @mmalerba

Sounds like a reasonable thing to add, <mat-select> has onOpen and onClose events, should probably use the same names here

@mmalerba it'll be perfect! Thanks.

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RoxKilly picture RoxKilly  路  3Comments

vitaly-t picture vitaly-t  路  3Comments

julianobrasil picture julianobrasil  路  3Comments

xtianus79 picture xtianus79  路  3Comments

vanor89 picture vanor89  路  3Comments