Skip to content

Commit

Permalink
docs: virtualized example currentTarget instead of target for scroll …
Browse files Browse the repository at this point in the history
…event (#5717)
  • Loading branch information
eifr authored Dec 30, 2024
1 parent 0bd3de1 commit a0443e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/react/virtualized-infinite-scrolling/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ function App() {
({flatData.length} of {totalDBRowCount} rows fetched)
<div
className="container"
onScroll={e => fetchMoreOnBottomReached(e.target as HTMLDivElement)}
onScroll={e => fetchMoreOnBottomReached(e.currentTarget)}
ref={tableContainerRef}
style={{
overflow: 'auto', //our scrollable table container
Expand Down

0 comments on commit a0443e9

Please sign in to comment.