Skip to content

Commit 4414b04

Browse files
authored
fix(material/tabs): fix contentTabIndex input type (#23413)
MatTabGroup's property `contentTabIndex` specifies its type as `number | null`. However, the `ngAcceptInputType` is specified as `BooleanInput`. Fixes the input type to be `NumberInput` to align with property type.
1 parent 6c724c1 commit 4414b04

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/material/tabs/tab-group.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ export abstract class _MatTabGroupBase extends _MatTabGroupMixinBase implements
420420
static ngAcceptInputType_animationDuration: NumberInput;
421421
static ngAcceptInputType_selectedIndex: NumberInput;
422422
static ngAcceptInputType_disableRipple: BooleanInput;
423-
static ngAcceptInputType_contentTabIndex: BooleanInput;
423+
static ngAcceptInputType_contentTabIndex: NumberInput;
424424
}
425425

426426
/**

tools/public_api_guard/material/tabs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ export abstract class _MatTabGroupBase extends _MatTabGroupMixinBase implements
244244
// (undocumented)
245245
static ngAcceptInputType_animationDuration: NumberInput;
246246
// (undocumented)
247-
static ngAcceptInputType_contentTabIndex: BooleanInput;
247+
static ngAcceptInputType_contentTabIndex: NumberInput;
248248
// (undocumented)
249249
static ngAcceptInputType_disableRipple: BooleanInput;
250250
// (undocumented)

0 commit comments

Comments
 (0)