Reproduction
https://stackblitz.com/angular/kgvngvkblme?file=src%2Fapp%2Fdatepicker-views-selection-example.ts
Steps to reproduce:
- Click on the calendar icon
- Select a year
- Select a month
This is actually the example from https://material.angular.io/components/datepicker/overview, although I found it more noticeable in my app
Expected Behavior
The datepicker calendar should close immediately.
Actual Behavior
When clicked on the month, the calendar briefly switches into monthly view (therefore displaying all the weeks and days), before closing.
Environment
- Angular: 10.2.0
- CDK/Material: 10.2.5
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): macOS