Skip to content

Commit 2e3f96f

Browse files
committed
fix test
1 parent 3fc8990 commit 2e3f96f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib/list/list.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ export class MatListItem extends _MatListItemMixinBase implements AfterContentIn
146146

147147
constructor(private _renderer: Renderer2,
148148
private _element: ElementRef,
149-
@Optional() private _list: MatList,
150149
@Optional() private _navList: MatNavList) {
151150
super();
152151
this._isNavList = !!_navList;
@@ -158,7 +157,7 @@ export class MatListItem extends _MatListItemMixinBase implements AfterContentIn
158157

159158
/** Whether this list item should show a ripple effect when clicked. */
160159
_isRippleDisabled() {
161-
return !this._isNavList || this.disableRipple || this._list.disableRipple;
160+
return !this._isNavList || this.disableRipple || this._navList.disableRipple;
162161
}
163162

164163
_handleFocus() {

0 commit comments

Comments
 (0)