Skip to content

Commit 6efb777

Browse files
devversionandrewseguin
authored andcommitted
chore(selection-list): superfluous disabled check (#7594)
Removes the unnecessary `disabled` check in the `ngAfterContentInit` lifecycle hook of the selection list. The `selectionList.disabled` state is being respected by the getter.
1 parent d55aa0c commit 6efb777

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/lib/list/selection-list.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,6 @@ export class MatListOption extends _MatListOptionMixinBase
142142

143143
ngAfterContentInit() {
144144
this._lineSetter = new MatLineSetter(this._lines, this._renderer, this._element);
145-
146-
if (this.selectionList.disabled) {
147-
this.disabled = true;
148-
}
149145
}
150146

151147
ngOnDestroy(): void {

0 commit comments

Comments
 (0)