MatStepper treats steps as `interacted` if you immediately return to a previous step
- Langage dominant
- TypeScript
- Étoiles
- 25k
- Forks
- 6.8k
- Merge moyen
- 1 j 8 h
- PR mergées (30 j)
- 91
Description
#### Bug, feature request, or proposal:
Bug
#### What is the expected behavior?
Angular-material forms should be presented in a non-error state when the conditions of the default ErrorStateMatcher are not met (not touched or not submitted)
#### What is the current behavior?
When a form is presented inside a mat-stepper, when traversing to a previous step, the form will be in an error state even if the form is pristine and un-submitted. Any attempt to try to reset the form or FormGroupDirective fails.
#### What are the steps to reproduce?
https://stackblitz.com/edit/angular-material2-issue-fay224
#### What is the use-case or motivation for changing an existing behavior?
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
#### Is there anything else we should know?
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par la reproduction StackBlitz liée et suivez l’interaction de MatStepper avec le formulaire et ErrorStateMatcher par défaut lors du retour à une étape précédente. Le travail est terminé lorsqu’un formulaire vierge et non soumis reste sans erreur lors de la revisite d’une étape, et que la réinitialisation du formulaire ou de FormGroupDirective fonctionne comme prévu.
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
- 35/100