angular / angular/components

MatStepper navigation tiggers form validation when it's not touched

オープン
#14,026 コメント 7 件 リアクション 12 件 担当者 0 名 GitHub で見る
area: cdk/stepper feature P3
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

#### Bug, feature request, or proposal:
Bug

#### What is the expected behavior?
Form validation is triggered only if fields are touched.

#### What is the current behavior?
When navigating though a material stepper, the form validation is triggered even if the fields are not touched.

#### What are the steps to reproduce?
https://stackblitz.com/angular/nanlqdlandy
1. Submit first step, you will arrive to step 2
2. Go back to step 1
3. Go back to step 2

#### What is the use-case or motivation for changing an existing behavior?
I think it's pretty confusing for the user to show an error even if he/she didn't even start to touch the field.

#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
See stackblitz.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

リンクされた StackBlitz の再現手順から始め、MatStepper のナビゲーションシーケンスに従います。ステップ 1 を送信し、そこに戻ってから、再度ステップ 2 に移動します。未操作のフィールドに対するバリデーションの動作を期待される動作と比較し、移動時に未操作のままのフィールドのバリデーションエラーが表示されなければ issue は完了とします。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
frontend
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。