Skip to content

Commit

Permalink
fix(material/tabs): default stretchTabs value not picked up by nav bar (
Browse files Browse the repository at this point in the history
#27212)

Fixes that the tab nav bar wasn't picking up the default value for `stretchTabs` from the config.

Fixes #27211.

(cherry picked from commit 88d3906)
  • Loading branch information
crisbeto committed Jun 2, 2023
1 parent 5571a55 commit 52a80fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/material/tabs/tab-nav-bar/tab-nav-bar.ts
Expand Up @@ -373,6 +373,8 @@ export class MatTabNav extends _MatTabNavBase implements AfterContentInit, After
defaultConfig && defaultConfig.fitInkBarToContent != null
? defaultConfig.fitInkBarToContent
: false;
this.stretchTabs =
defaultConfig && defaultConfig.stretchTabs != null ? defaultConfig.stretchTabs : true;
}

override ngAfterContentInit() {
Expand Down

0 comments on commit 52a80fe

Please sign in to comment.