angular / components

Component infrastructure and Material Design components for Angular
https://material.angular.io
MIT License
24.32k stars 6.73k forks source link

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

Open ArvindWip opened 2 years ago

ArvindWip commented 2 years ago

Is this a regression?

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

ArvindWip commented 2 years ago

Angular datepicker emulating only Year and Month website example bug.docx

Uploaded screenshot document for reference