Skip to content

Commit 48cf649

Browse files
authored
fix: Broken “Back to top” button for virtualized Tables (#549)
1 parent 460ca22 commit 48cf649

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Table.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ function TableRef(
841841
onClick={() =>
842842
tableContainerRef?.current?.scrollTo({
843843
top: 0,
844-
behavior: 'smooth',
844+
behavior: virtualizeRows ? 'instant' : 'smooth',
845845
})
846846
}
847847
>

0 commit comments

Comments
 (0)