angular / angular/components

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

Offen
#19,391 8 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area: material/autocomplete area: material/chips feature P3
Vorherrschende Sprache
TypeScript
Sterne
25k
Forks
6.8k
Ø Merge
1 T. 8 Std.
Gemergte PRs (30 T.)
91

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne mit der StackBlitz-Reproduktion in app/chips-autocomplete-example.ts und vergleiche sie mit dem Angular Material chips autocomplete example und Issue 14195. Reproduziere den Fehler, indem du den FormControl nach mat-chip-list verschiebst und required hinzufügst, und verfolge anschließend die Interaktion zwischen MatChipList und autocomplete. Die Aufgabe ist abgeschlossen, wenn autocomplete die Ergebnisse anhand des Benutzerttexts filtert und der required-Control weiterhin unterstützt wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
angular, typescript
Bereich
frontend
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.