angular / angular/components

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

Ouverte
#29,470 1 commentaire 2 réactions 0 personnes assignées Voir sur GitHub
area: material/chips G P3
Langage dominant
TypeScript
Étoiles
25k
Forks
6.8k
Merge moyen
1 j 8 h
PR mergées (30 j)
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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par la reproduction StackBlitz liée et suivez les points d’entrée de MatChipListbox, MatChipOption et MatChipAvatar dans le dépôt de composants Angular. Reproduisez la sélection avec hideSingleSelectionIndicator activé, puis vérifiez que l’indicateur est absent pour une option contenant un MatChipAvatar.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
angular, typescript
Domaine
frontend
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.