Skip to content

Commit cf7f62b

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Fix review comments.
1 parent 9832bcf commit cf7f62b

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

projects/igniteui-angular/src/lib/tabs/tabs.component.ts

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -327,18 +327,16 @@ export class IgxTabsComponent implements IgxTabsBase, AfterViewInit, OnDestroy {
327327
this.hideIndicator();
328328
}
329329
});
330-
if (this.platformUtil.isBrowser) {
331-
this._ngZone.runOutsideAngular(() => {
332-
this._resizeObserver = new ResizeObserver(() => {
333-
if (!this.hasContentTabs && this._selectedIndex >= 0 && this._selectedIndex < this.tabs.length) {
334-
const newTab = this.tabs.toArray()[this._selectedIndex];
335-
this.transformContentAnimation(newTab, 0);
336-
}
337-
});
338-
339-
this._resizeObserver.observe(this.tabsContainer.nativeElement);
330+
this._ngZone.runOutsideAngular(() => {
331+
this._resizeObserver = new ResizeObserver(() => {
332+
if (!this.hasContentTabs && this._selectedIndex >= 0 && this._selectedIndex < this.tabs.length) {
333+
const newTab = this.tabs.toArray()[this._selectedIndex];
334+
this.transformContentAnimation(newTab, 0);
335+
}
340336
});
341-
}
337+
338+
this._resizeObserver.observe(this.tabsContainer.nativeElement);
339+
});
342340
}
343341

344342
this._groupChanges$ = this.groups.changes.subscribe(() => {

0 commit comments

Comments
 (0)