diff --git a/src/lib/tabs/tab-group.ts b/src/lib/tabs/tab-group.ts index 28e0cb59656..3868f897232 100644 --- a/src/lib/tabs/tab-group.ts +++ b/src/lib/tabs/tab-group.ts @@ -9,7 +9,6 @@ import { AfterContentChecked, AfterContentInit, - AfterViewChecked, ChangeDetectionStrategy, ChangeDetectorRef, Component, @@ -78,15 +77,12 @@ export const _MatTabGroupMixinBase = mixinColor(mixinDisableRipple(MatTabGroupBa }, }) export class MatTabGroup extends _MatTabGroupMixinBase implements AfterContentInit, - AfterContentChecked, AfterViewChecked, OnDestroy, CanColor, CanDisableRipple { + AfterContentChecked, OnDestroy, CanColor, CanDisableRipple { @ContentChildren(MatTab) _tabs: QueryList; @ViewChild('tabBodyWrapper') _tabBodyWrapper: ElementRef; - /** Whether this component has been initialized. */ - private _isInitialized: boolean = false; - /** The tab index that should be selected after the content has been checked. */ private _indexToSelect: number | null = 0; @@ -218,14 +214,6 @@ export class MatTabGroup extends _MatTabGroupMixinBase implements AfterContentIn this._tabLabelSubscription.unsubscribe(); } - /** - * Waits one frame for the view to update, then updates the ink bar - * Note: This must be run outside of the zone or it will create an infinite change detection loop. - */ - ngAfterViewChecked(): void { - this._isInitialized = true; - } - _focusChanged(index: number) { this.focusChange.emit(this._createChangeEvent(index)); }