Skip to content

Commit ad14b90

Browse files
committed
chore(*): Fix virtualization issue with change detection.
1 parent 122d801 commit ad14b90

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,7 @@ export class IgxForOfDirective<T, U extends T[] = T[]> extends IgxForOfToken<T,U
10651065
this.scrollFocus(embView.rootNodes.find(node => node.nodeType === Node.ELEMENT_NODE)
10661066
|| embView.rootNodes[0].nextElementSibling);
10671067
const view = container.detach(0);
1068-
1068+
view.detectChanges();
10691069
this.updateTemplateContext(embView.context, i);
10701070
container.insert(view);
10711071
this._embeddedViews.push(embView);
@@ -1085,7 +1085,7 @@ export class IgxForOfDirective<T, U extends T[] = T[]> extends IgxForOfToken<T,U
10851085
this.scrollFocus(embView.rootNodes.find(node => node.nodeType === Node.ELEMENT_NODE)
10861086
|| embView.rootNodes[0].nextElementSibling);
10871087
const view = container.detach(container.length - 1);
1088-
1088+
view.detectChanges();
10891089
this.updateTemplateContext(embView.context, i);
10901090
container.insert(view, 0);
10911091
this._embeddedViews.unshift(embView);

0 commit comments

Comments
 (0)