bug(chip): chip selection state does not match [selected] v19.1.1
- 主要言語
- TypeScript
- スター
- 25k
- フォーク
- 6.8k
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 91
説明
### Is this a regression?
- [x] Yes, this behavior used to work in the previous version
### The previous version in which this bug was not present was
19.1.0
### Description
I have a component with selectable stacked chips with drag drop to rearrange/toggle columns of my table.
after 19.1.1 update moving deselected chip changes the selection of other chips not respecting the [selected] in mat-chip-option
### Reproduction
I have create a minimal reproduction of the issue
https://github.com/Siddhu-K/chip-drag
toggle chips and drag drop.
```
@for (i of chip_list(); track i; let index = $index) {
{{ index + 1 + ". " + i.name + " - " + i.selected }}
}
```
### Expected Behavior
actual selection should match [selected] in the mat-chip-option
### Actual Behavior
actual selection does not match [selected] in the mat-chip-option
### Environment
Angular CLI: 19.1.8
Node: 22.13.0
Package Manager: npm 11.1.0
OS: win32 x64
Angular: 19.1.7
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1901.8
@angular-devkit/build-angular 19.1.8
@angular-devkit/core 19.1.8
@angular-devkit/schematics 19.1.8
@angular/cdk 19.1.5
@angular/cli 19.1.8
@angular/material 19.1.5
@schematics/angular 19.1.8
rxjs 7.8.1
typescript 5.7.3
zone.js 0.15.0
コントリビューションガイド
調査の方向性
github.com/Siddhu-K/chip-drag にあるリンク先の最小再現から始め、チップを切り替えてから選択解除されたチップをドラッグして、問題を再現します。mat-chip-listbox、mat-chip-option [selected]、および cdkDropList の間の相互作用を追跡します。並べ替え後も、表示される選択状態が各チップの selected 値と一致していれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100