bug(mat-date-range-picker): MatEndDate dateChanged is triggered by changes to start and end date
- Lingua principale
- TypeScript
- Stelle
- 25k
- Fork
- 6.8k
- Merge medio
- 1g 8h
- PR unite (30g)
- 91
Descrizione
#### Reproduction
Stackblitz demo:
https://components-issue-aypuzh.stackblitz.io
Steps to reproduce:
1. Create a MatDateRangePicker as shown in the docs
2. Add the dateChanged attribute to matStartDate or matEndDate
3. Start to change dates
#### Expected Behavior
What behavior were you expecting to see?
That the date changed attribute on matEndDate is only triggered when you change the end date. Or a way to detect when both start and end date have successfully been set.
#### Actual Behavior
What behavior did you actually see?
The date changed attribute on matEndDate is triggered both when you change the start and end date.
#### Environment
- Angular: 10.0.0
- CDK/Material: Material 10.0.0
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): macOS
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia dalla riproduzione StackBlitz collegata e dall'esempio della documentazione di Angular Material per MatDateRangePicker, concentrandoti sui gestori dateChanged di matStartDate e matEndDate. Riproduci la sequenza degli eventi mentre modifichi ciascuna data; il lavoro è completato quando il gestore matEndDate viene attivato solo per le modifiche alla data di fine, oppure viene documentato il modo supportato per rilevare che entrambe le date sono state impostate.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, typescript
- Ambito
- frontend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100