Skip to content

Commit 87cb1ca

Browse files
committed
fix: onScroll
1 parent 5870536 commit 87cb1ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/VirtualList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export type VirtualListProps<ITEM> = {
4040
/**
4141
* listen to scroll event.
4242
*/
43-
onScroll: typeof document.onscroll,
43+
onScroll?: typeof document.onscroll,
4444
className?: string,
4545
style?: React.CSSProperties,
4646
} & OptionalKeys<typeof defaultProps>

0 commit comments

Comments
 (0)