Skip to content

Commit a0443e9

Browse files
authored
docs: virtualized example currentTarget instead of target for scroll event (#5717)
1 parent 0bd3de1 commit a0443e9

File tree

1 file changed

+1
-1
lines changed
  • examples/react/virtualized-infinite-scrolling/src

1 file changed

+1
-1
lines changed

examples/react/virtualized-infinite-scrolling/src/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ function App() {
184184
({flatData.length} of {totalDBRowCount} rows fetched)
185185
<div
186186
className="container"
187-
onScroll={e => fetchMoreOnBottomReached(e.target as HTMLDivElement)}
187+
onScroll={e => fetchMoreOnBottomReached(e.currentTarget)}
188188
ref={tableContainerRef}
189189
style={{
190190
overflow: 'auto', //our scrollable table container

0 commit comments

Comments
 (0)