MatStepper treats steps as `interacted` if you immediately return to a previous step
オープン
まだ誰も着手していません。
area: cdk/stepper
feature
P4
- 主要言語
- TypeScript
- スター
- 25k
- フォーク
- 6.8k
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 91
説明
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?
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
リンクされた StackBlitz の再現から始め、前のステップに戻ったときの MatStepper とフォームおよびデフォルトの ErrorStateMatcher の相互作用を追跡します。完了の条件は、未変更で未送信のフォームがステップに再訪した際もエラー状態にならず、フォームまたは FormGroupDirective のリセットが期待どおりに機能することです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100