bug(mat-autocomplete): missing selection indicator (highlight + check icon) when using mat-autocomplete with mat-optgroup
- 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
14
### Description
v15 introduced an indicator of the currently selected item:

However, this indicator is missing when, instead of flat mat-options, we're using mat-optgroup with mat-options:

### Reproduction
The repro is even in the official documentation of any version higher than v14:
https://v15.material.angular.io/components/autocomplete/examples
### Expected Behavior
We should see the indicator of a selected item even when we're using mat-optgroup
### Actual Behavior
Missing selection indicator when using mat-autocomplete with mat-optgroup
### Environment
- Angular: v15+
- CDK/Material: v15+
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par les exemples d’Autocomplete liés dans l’issue et comparez le cas des mat-options plates avec le cas de mat-optgroup. Reproduisez la mise en surbrillance et l’icône de coche manquantes dans Angular/Material v15+, puis vérifiez que l’indicateur de l’élément sélectionné apparaît également pour les options groupées.
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é
- Clairement spécifiée
- Accessibilité débutants
- 42/100