Skip to content

Commit c5ec29f

Browse files
authored
build: fix lint failure in MDC option (#20124)
The lint rule for lightweight tokens was introduced in parallel to the MDC option which lead to a failure in master. These changes resolve the failure.
1 parent f9c6d2a commit c5ec29f

File tree

1 file changed

+2
-1
lines changed
  • src/material-experimental/mdc-core/option

1 file changed

+2
-1
lines changed

src/material-experimental/mdc-core/option/option.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {
1919
_MatOptionBase,
2020
MAT_OPTION_PARENT_COMPONENT,
2121
MatOptionParentComponent,
22+
MAT_OPTGROUP,
2223
} from '@angular/material/core';
2324
import {MatOptgroup} from './optgroup';
2425

@@ -52,7 +53,7 @@ export class MatOption extends _MatOptionBase {
5253
element: ElementRef<HTMLElement>,
5354
changeDetectorRef: ChangeDetectorRef,
5455
@Optional() @Inject(MAT_OPTION_PARENT_COMPONENT) parent: MatOptionParentComponent,
55-
@Optional() group: MatOptgroup) {
56+
@Optional() @Inject(MAT_OPTGROUP) group: MatOptgroup) {
5657
super(element, changeDetectorRef, parent, group);
5758
}
5859
}

0 commit comments

Comments
 (0)