bug(mat-autocomplete): missing selection indicator (highlight + check icon) when using mat-autocomplete with mat-optgroup
- Lingua principale
- TypeScript
- Stelle
- 25k
- Fork
- 6.8k
- Merge medio
- 1g 8h
- PR unite (30g)
- 91
Descrizione
### 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+
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con gli esempi di Autocomplete collegati nell’issue e confronta il caso con mat-options piatte con il caso con mat-optgroup. Riproduci l’evidenziazione e l’icona di spunta mancanti in Angular/Material v15+, quindi verifica che l’indicatore dell’elemento selezionato venga visualizzato anche per le opzioni raggruppate.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, typescript
- Ambito
- frontend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 42/100