Skip to content

Commit

Permalink
fix(material/tabs): touch gestures not working on tab nav bar (#26344)
Browse files Browse the repository at this point in the history
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.

(cherry picked from commit d2dcd76)
  • Loading branch information
crisbeto committed Jan 4, 2023
1 parent 6c4a1f7 commit 3e50216
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/material/tabs/tab-nav-bar/tab-nav-bar.ts
Expand Up @@ -384,6 +384,7 @@ export class MatTabNav extends _MatTabNavBase implements AfterContentInit, After
if (!this.tabPanel && (typeof ngDevMode === 'undefined' || ngDevMode)) {
throw new Error('A mat-tab-nav-panel must be specified via [tabPanel].');
}
super.ngAfterViewInit();
}
}

Expand Down

0 comments on commit 3e50216

Please sign in to comment.