Skip to content

Commit ea87d8f

Browse files
MKirovaMayaKirova
authored andcommitted
fix(igxForOf): Do not update sizes and states while container is detached from DOM.
1 parent 4e93779 commit ea87d8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

projects/igniteui-angular/src/lib/directives/for-of/for_of.directive.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -893,6 +893,7 @@ export class IgxForOfDirective<T> implements OnInit, OnChanges, DoCheck, OnDestr
893893
}
894894

895895
protected updateSizes() {
896+
if (!this.scrollComponent.nativeElement.isConnected) return;
896897
const scrollable = this.isScrollable();
897898
this.recalcUpdateSizes();
898899
this._applyChanges();

0 commit comments

Comments
 (0)