Skip to content

Commit

Permalink
fix: Broken “Back to top” button for virtualized Tables (#549)
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmar authored Dec 13, 2023
1 parent 460ca22 commit 48cf649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ function TableRef(
onClick={() =>
tableContainerRef?.current?.scrollTo({
top: 0,
behavior: 'smooth',
behavior: virtualizeRows ? 'instant' : 'smooth',
})
}
>
Expand Down

0 comments on commit 48cf649

Please sign in to comment.