Skip to content

Commit 52a80fe

Browse files
committed
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. (cherry picked from commit 88d3906)
1 parent 5571a55 commit 52a80fe

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
@@ -373,6 +373,8 @@ export class MatTabNav extends _MatTabNavBase implements AfterContentInit, After
373373
defaultConfig && defaultConfig.fitInkBarToContent != null
374374
? defaultConfig.fitInkBarToContent
375375
: false;
376+
this.stretchTabs =
377+
defaultConfig && defaultConfig.stretchTabs != null ? defaultConfig.stretchTabs : true;
376378
}
377379

378380
override ngAfterContentInit() {

0 commit comments

Comments
 (0)