angular / angular/components

feat(MatChipList): add better out-of-the-box support for FormControls

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

説明

#### Reproduction

Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/chips-autocomplete-required-failure?file=app/chips-autocomplete-example.ts

Steps to reproduce:
1. Fork the mat-chips autocomplete example from the Angular documentation
2. Move the form control to the mat-chip-list and add required attribute
3. Try using the auto complete 💥

NOTE: Followed suggestion in the following issue to add the required field, but that example doesn't include autocomplete. With this the autocomplete breaks. https://github.com/angular/components/issues/14195

#### Expected Behavior

The autocomplete should filter results based on text entered.

#### Actual Behavior

The autocomplete does not filter the results based on the text input from the user.

#### Environment

- Angular: 8.2.14
- CDK/Material: 8.2.3
- Browser(s): Chrome 81.0.4044.138
- Operating System (macOS): Mojave 10.14.6

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

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

調査の方向性

app/chips-autocomplete-example.ts の StackBlitz reproduction から始め、Angular Material chips autocomplete example および Issue 14195 と比較します。FormControl を mat-chip-list に移動して required を追加することで失敗を再現し、その後 MatChipList と autocomplete の相互作用を追跡します。autocomplete がユーザーのテキストから結果をフィルタリングし、required control が引き続きサポートされれば完了です。

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

評価

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

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

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