Skip to content

Commit 47c4710

Browse files
authored
fix(material/sort): correctly specify AriaDesciber token (#23751)
Specifies the token via `@Inject` since the param type includes `null`
1 parent 7ab0ef4 commit 47c4710

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/material/sort/sort-header.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export class MatSortHeader extends _MatSortHeaderBase
175175
private _focusMonitor: FocusMonitor,
176176
private _elementRef: ElementRef<HTMLElement>,
177177
/** @breaking-change 14.0.0 _ariaDescriber will be required. */
178-
@Optional() private _ariaDescriber?: AriaDescriber | null) {
178+
@Inject(AriaDescriber) @Optional() private _ariaDescriber?: AriaDescriber | null) {
179179
// Note that we use a string token for the `_columnDef`, because the value is provided both by
180180
// `material/table` and `cdk/table` and we can't have the CDK depending on Material,
181181
// and we want to avoid having the sort header depending on the CDK table because

0 commit comments

Comments
 (0)