We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5870536 commit 87cb1caCopy full SHA for 87cb1ca
lib/VirtualList.tsx
@@ -40,7 +40,7 @@ export type VirtualListProps<ITEM> = {
40
/**
41
* listen to scroll event.
42
*/
43
- onScroll: typeof document.onscroll,
+ onScroll?: typeof document.onscroll,
44
className?: string,
45
style?: React.CSSProperties,
46
} & OptionalKeys<typeof defaultProps>
0 commit comments