MatStepper treats steps as `interacted` if you immediately return to a previous step
- Vorherrschende Sprache
- TypeScript
- Sterne
- 25k
- Forks
- 6.8k
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 91
Beschreibung
#### 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?
Beitragsleitfaden
Rechercherichtung
Beginne mit der verlinkten StackBlitz-Reproduktion und verfolge die Interaktion von MatStepper mit dem Formular und dem standardmäßigen ErrorStateMatcher, wenn zu einem vorherigen Schritt zurückgekehrt wird. Erledigt ist die Aufgabe, wenn ein unverändertes, nicht abgesendetes Formular beim erneuten Aufrufen eines Schritts weiterhin fehlerfrei bleibt und das Zurücksetzen des Formulars oder von FormGroupDirective erwartungsgemäß funktioniert.
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
- 35/100