angular / angular/components

bug(MATCHIP): Chip text doesn't truncate or wrap if the text length takes more width than the form field

Offen
#30,158 10 Kommentare 5 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area: material/chips area: material/form-field P4
Vorherrschende Sprache
TypeScript
Sterne
25k
Forks
6.8k
Ø Merge
1 T. 8 Std.
Gemergte PRs (30 T.)
91

Beschreibung

### Is this a regression?

- [ ] Yes, this behavior used to work in the previous version

### The previous version in which this bug was not present was

_No response_

### Description

Chip text doesn't truncate or wrap if the text length takes more width than the form field . Remove icon button is also not visible

### Reproduction

StackBlitz link: https://stackblitz.com/edit/hnhs71mw?file=src%2Fexample%2Fchips-autocomplete-example.html
Steps to reproduce:
1.
2.

### Expected Behavior

Text inside the chip should either truncate or wrap and the remove icon button should be visible

### Actual Behavior

Text overflows the chip and the form field and the remove icon button is not visible

### Environment

- Angular:
- CDK/Material:
- Browser(s):
- Operating System (e.g. Windows, macOS, Ubuntu):

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne mit der StackBlitz-Reproduktion unter src/example/chips-autocomplete-example.html und überprüfe den überlaufenden Chip-Text sowie das ausgeblendete Entfernen-Symbol im Chips-Autocomplete-Beispiel. Verfolge das zugehörige Verhalten von Chip und Formularfeld anhand dieses Beispiels und bestätige anschließend, dass langer Chip-Text innerhalb des Feldes bleibt und die Entfernen-Schaltfläche sichtbar bleibt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
angular, typescript
Bereich
frontend
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
48/100

Neue Issues direkt in Ihr Postfach

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