-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Open
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/list
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.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.
<mat-nav-list>
<ng-container *ngTemplateOutlet="items"></ng-container>
</mat-nav-list>
<ng-template #items>
<a mat-list-item href="https://google.com"> google </a>
<a mat-list-item href="https://angular.io"> angular </a>
</ng-template>
Reproduction
StackBlitz link: https://stackblitz.com/edit/ng5v1w-bbsdvs?file=src%2Fexample%2Flist-overview-example.html
Steps to reproduce:
- 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
silvanknecht, krishnanmk, c-kunz, markus-commits and Kiboya
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/list