bug(MatList): content projected mat-list-items do not apply mat-mdc-list-item-interactive
- Lingua principale
- TypeScript
- Stelle
- 25k
- Fork
- 6.8k
- Merge medio
- 1g 8h
- PR unite (30g)
- 91
Descrizione
### Is this a regression?
- [X] Yes, this behavior used to work in the previous version
### The previous version in which this bug was not present was
14.2.6
### Description
After updating to Angular v15 projecting `mat-list-items` into the `mat-nav-list` does no longer work as expected. The hover effect is not working as the class `mat-mdc-list-item-interactive` is not added.
```
```
### Reproduction
StackBlitz link: https://stackblitz.com/edit/ng5v1w-bbsdvs?file=src%2Fexample%2Flist-overview-example.html
Steps to reproduce:
1. hover over not working items
### Expected Behavior
Content projected items should behave like they were added "directly".
### Actual Behavior
`Mat-list-items` do not get the `mat-mdc-list-item-interactive` class and therefore displayed as non-interactive.
### Environment
- Angular: 15.2.9
- CDK/Material: 15.2.9
- Browser(s): Firefox/Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Windows
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia dalla riproduzione StackBlitz collegata, in particolare src/example/list-overview-example.html, e confronta i mat-list-items proiettati con gli elementi dichiarati direttamente in mat-nav-list. Riproduci il comportamento di hover mancante e traccia il percorso di proiezione dell'elemento della lista; il lavoro è completato quando gli elementi proiettati ricevono mat-mdc-list-item-interactive e si comportano come gli elementi aggiunti direttamente.
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
- Abbastanza chiara
- Idoneità per principianti
- 35/100