bug(MatChipList): chip list disabled should respect each chip item disabled state
- 主要言語
- 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

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