angular / angular/components

MatStepper treats steps as `interacted` if you immediately return to a previous step

Aperta
#14,067 8 commenti 13 reazioni 0 assegnatari Vedi su GitHub
area: cdk/stepper feature P4
Lingua principale
TypeScript
Stelle
25k
Fork
6.8k
Merge medio
1g 8h
PR unite (30g)
91

Descrizione

#### 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?

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia con la riproduzione StackBlitz collegata e traccia l’interazione di MatStepper con il modulo e con ErrorStateMatcher predefinito quando si torna a uno step precedente. Il lavoro è completato quando un modulo non modificato e non inviato rimane privo di errori tornando a visitare uno step e quando il ripristino del modulo o di FormGroupDirective funziona come previsto.

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

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.