angular / angular/components

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

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

説明

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

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

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

調査の方向性

src/example/chips-autocomplete-example.html の StackBlitz reproduction から始め、chips autocomplete example でチップのテキストがオーバーフローする問題と、非表示になっている削除アイコンを確認します。その例から関連するチップとフォームフィールドの動作を追跡し、長いチップのテキストがフィールド内に収まり、削除ボタンが表示されたままになることを確認します。

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

評価

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

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

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