We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af2f5e1 commit 3f1e24cCopy full SHA for 3f1e24c
projects/igniteui-angular/src/lib/tabs/tab-item.component.ts
@@ -278,10 +278,12 @@ export class IgxTabItemComponent extends IgxTabItemBase implements AfterViewInit
278
public setSelectedInternal(newValue: boolean) {
279
this._isSelected = newValue;
280
this._ngZone.runOutsideAngular(() => {
281
- if (this._isSelected) {
282
- this._resizeObserver.observe(this._element.nativeElement);
283
- } else {
284
- this._resizeObserver.disconnect();
+ if (this._resizeObserver) {
+ if (this._isSelected) {
+ this._resizeObserver.observe(this._element.nativeElement);
+ } else {
285
+ this._resizeObserver.disconnect();
286
+ }
287
}
288
});
289
this.tabindex = newValue ? 0 : -1;
0 commit comments