Open Cowraider opened 1 year ago
My workaround for now is to add
class="mat-mdc-list-item-interactive" matRipple
to the mat-list-item element manually
+1
Same behavior in v15 with mat-action-list
and templated items <button mat-list-item>
.
Workaround atm is indeed to add the mat-mdc-list-item-interactive
class and matRipple
.
Any other workaround to look trough the templating?
Is this a regression?
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 themat-nav-list
does no longer work as expected. The hover effect is not working as the classmat-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:
Expected Behavior
Content projected items should behave like they were added "directly".
Actual Behavior
Mat-list-items
do not get themat-mdc-list-item-interactive
class and therefore displayed as non-interactive.Environment