Skip to content

bug(material/datepicker) : Watching the views for changes on selected years and months examle provided #24332

@ArvindWip

Description

@ArvindWip

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

When using the angular material datepicker example given in the below link. The issue faced are reported below.
https://material.angular.io/components/datepicker/overview#watching-the-views-for-changes-on-selected-years-and-months.

Actual example how it should work:

Angular material datepicker should show only year and month selector and the same to be applied in the field.

Issues:

  1. Day selector is displayed before datepicker closing for a millisecond which looks like a glitch.
  2. After selecting the year from datepicker if I select the year dropdown from the picker day selector is displayed and we are able to select the day which should not happen.

Reproduction

Steps to reproduce:

  1. First Issue: Choose Year and then month, after selecting month day selector is displayed for split second which looks like a glitch
  2. Second Issue: Choose Year then select Year dropdown in the example day selector is displayed.

Expected Behavior

Angular datepicker with only year and month should not show day selector.

Actual Behavior

  1. Day selector is shown as a glitch for a split second furing year and month selection.
  2. Day selector is shown when year dropdown is selected.

Environment

  • Angular:
  • CDK/Material:
  • Browser(s):
  • Operating System (e.g. Windows, macOS, Ubuntu):

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/datepicker

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions