Skip to content

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

Closed

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

Activity

  1. willshowell commented on Oct 12, 2017

    @willshowell
    Contributor

    Also on r/Angular2.

    cc @mmalerba

  2. mmalerba commented on Oct 12, 2017

    @mmalerba
    Contributor

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

  3. self-assigned this
    on Oct 12, 2017
  4. added
    help wanted
    on Oct 12, 2017
  5. geelus commented on Oct 12, 2017

    @geelus
    Author

    @mmalerba it'll be perfect! Thanks.

  6. self-assigned this
    on Oct 14, 2017
  7. added 2 commits that reference this issue on Oct 14, 2017
    1be91fa
    fa52f9d
  8. added a commit that references this issue on Nov 4, 2017
    f41745e
  9. added a commit that references this issue on Nov 7, 2017
    cef4e31
  10. deleted a comment from torabian on Dec 1, 2018
  11. angular-automatic-lock-bot commented on Sep 10, 2019

    @angular-automatic-lock-bot

    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.

  12. locked and limited conversation to collaborators on Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

help wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions