angular / angular/components

bug(MatChipList): chip list disabled should respect each chip item disabled state

オープン
#27,971 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
area: material/chips P3
主要言語
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

Chiplist [disabled] toggling from disable to enable doesn't respect each chip item [disabled] state. Chip items, which are actually disabled become visually enabled.

### Reproduction

StackBlitz link: https://stackblitz.com/edit/vdefsz?file=src%2Fexample%2Fchips-input-example.html,src%2Fexample%2Fchips-input-example.ts

Steps to reproduce:
1. The chip item is disabled and has properly disabled styles in initialization
![2023-10-20_15h12_54](https://github.com/angular/components/assets/12629525/a8ca53f3-a9ee-44a7-8e4b-f8f20f74b469)
2. Click 'Disable chiplist'
3. Click 'Enable chiplist'

### Expected Behavior

The chip item is visually disabled

### Actual Behavior

The chip item ignores its disabled state and looks like enabled

### Environment

- Angular: 16.2.9
- CDK/Material: 16.2.9
- Browser(s): Google Chrome, Version 118.0.5993.88 (Official Build) (64-bit)
- Operating System (e.g. Windows, macOS, Ubuntu): Windows 10

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

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

調査の方向性

リンクされた StackBlitz の再現例を使用し、src/example/chips-input-example.html と src/example/chips-input-example.ts から始めます。無効化/有効化のシーケンスを再現し、その後 MatChipList の状態処理を追跡します。チップ リストを再度有効にした後も、個別に無効化されたチップが無効状態の外観を維持すれば完了です。

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

評価

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

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

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