bug(datepicker): Date range picker incorrectly has matStartDateInvalid error after modification
- Langage dominant
- TypeScript
- Étoiles
- 25k
- Forks
- 6.8k
- Merge moyen
- 1 j 8 h
- PR mergées (30 j)
- 91
Description
#### Reproduction
Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/angular-uotl3m-yzo7qt
Steps to reproduce:
1. Pick a date range in date picker.
2. Modify the start date using the input with a date after the end date
3. Modify the end date using the input with a date after the start date
#### Expected Behavior
The FormGroup is valid and not error message is show.
#### Actual Behavior
What behavior did you actually see?
The error message "Invalid start date" is show.
**If you change the version of material from "^11.0.0" to "11.0.0" there is no problemr**
#### Environment
- Angular: "^11.0.0
- CDK/Material: "^11.0.0
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): windows 10
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par la reproduction StackBlitz liée et suivez les champs du sélecteur de plage de dates lors des modifications des dates de début et de fin. Confirmez que le problème est corrigé lorsque la date de début est modifiée après la date de fin, puis que la date de fin est modifiée, de sorte que le FormGroup reste valide sans message d’erreur « matStartDateInvalid ».
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- angular, typescript
- Domaine
- frontend
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 42/100