Datepicker: When selecting a month in a year/month mode, the day selection flashes on click
- Vorherrschende Sprache
- TypeScript
- Sterne
- 25k
- Forks
- 6.8k
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 91
Beschreibung
#### Reproduction
https://stackblitz.com/angular/kgvngvkblme?file=src%2Fapp%2Fdatepicker-views-selection-example.ts
Steps to reproduce:
1. Click on the calendar icon
2. Select a year
3. 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
Beitragsleitfaden
Rechercherichtung
Beginne mit der StackBlitz-Reproduktion, insbesondere mit src/app/datepicker-views-selection-example.ts, und reproduziere die Auswahl von Jahr und anschließend Monat im Angular datepicker. Verfolge den Übergang nach der Monatsauswahl und überprüfe, dass sich der Kalender sofort schließt, ohne kurz die Tagesansicht anzuzeigen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- angular, typescript
- Bereich
- frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 30/100