Skip to content

Commit

Permalink
fix(material/tabs): fix contentTabIndex input type (#23413)
Browse files Browse the repository at this point in the history
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.

(cherry picked from commit 4414b04)
  • Loading branch information
byanofsky authored and zarend committed Sep 7, 2021
1 parent 461d76c commit 03c033f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/material/tabs/tab-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ export abstract class _MatTabGroupBase extends _MatTabGroupMixinBase implements
static ngAcceptInputType_animationDuration: NumberInput;
static ngAcceptInputType_selectedIndex: NumberInput;
static ngAcceptInputType_disableRipple: BooleanInput;
static ngAcceptInputType_contentTabIndex: BooleanInput;
static ngAcceptInputType_contentTabIndex: NumberInput;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tools/public_api_guard/material/tabs.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export abstract class _MatTabGroupBase extends _MatTabGroupMixinBase implements
// (undocumented)
static ngAcceptInputType_animationDuration: NumberInput;
// (undocumented)
static ngAcceptInputType_contentTabIndex: BooleanInput;
static ngAcceptInputType_contentTabIndex: NumberInput;
// (undocumented)
static ngAcceptInputType_disableRipple: BooleanInput;
// (undocumented)
Expand Down

0 comments on commit 03c033f

Please sign in to comment.