mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
chore(tabs): remove unused initialized check (#7476)
This commit is contained in:
@@ -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<MatTab>;
|
||||
|
||||
@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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user