Skip to content

Commit d2dcd76

Browse files
authored
fix(material/tabs): touch gestures not working on tab nav bar (#26344)
The touch gestures for holding the pagination buttons wasn't working in the tab nav bar, because we were overriding the `ngAfterViewInit` method without invoking the `super` implementation.
1 parent 6f393ff commit d2dcd76

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ export class MatTabNav extends _MatTabNavBase implements AfterContentInit, After
384384
if (!this.tabPanel && (typeof ngDevMode === 'undefined' || ngDevMode)) {
385385
throw new Error('A mat-tab-nav-panel must be specified via [tabPanel].');
386386
}
387+
super.ngAfterViewInit();
387388
}
388389
}
389390

0 commit comments

Comments
 (0)