Setting a single formControl to Untouched does not reset the error css state
- 主要言語
- TypeScript
- スター
- 25k
- フォーク
- 6.8k
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 91
説明
#### Bug, feature request, or proposal:
Bug
#### What is the expected behavior?
Don't use mat-form-field-invalid, but use the native angular core css classes ng-invalid
Because mat-form-field-invalid does not get removed when setting a single formControl to untouched
#### What is the current behavior?
mat-form-field-invalid does not get removed when doing markAsUntouched
#### What are the steps to reproduce?
Providing a StackBlitz reproduction is the *best* way to share your issue.
StackBlitz starter: https://goo.gl/wwnhMV
On every simple form
#### What is the use-case or motivation for changing an existing behavior?
Material uses it's own mat-form-field-invalid css class instead of the angular core css classes, this makes error. This is a wrong design
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
newest versions
#### Is there anything else we should know?
コントリビューションガイド
調査の方向性
リンクされた StackBlitz の再現から始め、markAsUntouched が Material のフォームフィールドのエラー状態に、Angular のネイティブな form-control クラスと比べてどのように影響するかを追跡します。単純なフォームで動作を確認し、1 つのコントロールを untouched としてマークすると、他のコントロールを変更せずに対応する無効状態のスタイルが削除されることを検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 38/100