Skip to content
This repository was archived by the owner on May 4, 2022. It is now read-only.

Commit 87d75d7

Browse files
m1awliamdebeasi
authored andcommitted
fix(virtual-scroll): validate null events on scroll update (#970)
1 parent b0426a3 commit 87d75d7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/virtual-scroll/virtual-scroll.ts

+5
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,11 @@ export class VirtualScroll implements DoCheck, OnChanges, AfterContentInit, OnDe
716716
* @hidden
717717
*/
718718
scrollUpdate(ev: ScrollEvent) {
719+
// ensure no empty are processed
720+
if (!ev) {
721+
return;
722+
}
723+
719724
// set the scroll top from the scroll event
720725
this._data.scrollTop = ev.scrollTop;
721726

0 commit comments

Comments
 (0)