angular / angular/components

bug(chips): MatChipListbox with hideSingleSelectionIndicator does not hide selection indicator on options that have matChipAvatar

未关闭
#29,470 1 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
area: material/chips G P3
主要语言
TypeScript
星标
25k
派生
6.8k
平均合并
1 天 8 小时
30 天内合并 PR
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

MatChipListbox hideSingleSelectionIndicator is not hiding the single selection indicator when a MatChipOption has a MatChipAvatar child

### Reproduction

StackBlitz link: https://stackblitz.com/edit/components-issue-rcxta6?file=src%2Fapp%2Fexample-component.html
Steps to reproduce:
1. Have a MatChipListbox with a MatChipOption where the MatChipOption has as MatChipAvatar
2. Set hideSingleSelectionIndicator="true" on the MatChipListbox
3. Click the option from (1)
4. The selection indicator will be there

### Expected Behavior

The single selection indicator should not appear

### Actual Behavior

The single selection indicator does appear

### Environment

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

贡献指南

打开贡献指南

调研方向

从链接的 StackBlitz 复现开始,并在 Angular 组件仓库中跟踪 MatChipListbox、MatChipOption 和 MatChipAvatar 的入口点。启用 hideSingleSelectionIndicator 后复现选择操作,然后验证包含 MatChipAvatar 的选项不会显示指示器。

由索引模型根据 Issue 内容生成。

评估

技术栈
angular, typescript
领域
frontend
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。