bug(chips): MatChipListbox with hideSingleSelectionIndicator does not hide selection indicator on options that have matChipAvatar
- Dominant language
- TypeScript
- Stars
- 25k
- Forks
- 6.8k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 91
Description
### 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
Contributor guide
Research direction
Start with the linked StackBlitz reproduction and trace the MatChipListbox, MatChipOption, and MatChipAvatar entry points in the Angular components repository. Reproduce the selection with hideSingleSelectionIndicator enabled, then verify that the indicator is absent for an option containing a MatChipAvatar.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100