Skip to content

Commit 88d3906

Browse files
authored
fix(material/tabs): default stretchTabs value not picked up by nav bar (#27212)
Fixes that the tab nav bar wasn't picking up the default value for `stretchTabs` from the config. Fixes #27211.
1 parent b8f8dca commit 88d3906

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/material/tabs/tab-nav-bar/tab-nav-bar.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,8 @@ export class MatTabNav extends _MatTabNavBase implements AfterContentInit, After
385385
defaultConfig && defaultConfig.fitInkBarToContent != null
386386
? defaultConfig.fitInkBarToContent
387387
: false;
388+
this.stretchTabs =
389+
defaultConfig && defaultConfig.stretchTabs != null ? defaultConfig.stretchTabs : true;
388390
}
389391

390392
override ngAfterContentInit() {

0 commit comments

Comments
 (0)