Skip to content

No event gets fired for mat-datepicker popup close (for the same day) #7626

@geelus

Description

@geelus

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

Metadata

Metadata

Labels

help wantedThe team would appreciate a PR from the community to address this issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions