Skip to content

Commit

Permalink
Fixed #11987 - VirtualScroller triggers onLazyLoad event even though …
Browse files Browse the repository at this point in the history
…there is no scroll event.
  • Loading branch information
mertsincan committed Nov 7, 2022
1 parent e373b59 commit b4ecba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/scroller/scroller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ export class Scroller implements OnInit, AfterContentInit, AfterViewChecked, OnD
}

if (this.initialized) {
const isChanged = !isLoadingChanged && (simpleChanges.items || simpleChanges.itemSize || simpleChanges.scrollHeight || simpleChanges.scrollWidth);
const isChanged = !isLoadingChanged && (simpleChanges.items?.previousValue?.length !== simpleChanges.items?.currentValue?.length || simpleChanges.itemSize || simpleChanges.scrollHeight || simpleChanges.scrollWidth);
isChanged && this.init();
}
}
Expand Down

0 comments on commit b4ecba4

Please sign in to comment.