diff --git a/website/src/components/SearchPage/SearchPagination.tsx b/website/src/components/SearchPage/SearchPagination.tsx index 1963e2da6..99597e373 100644 --- a/website/src/components/SearchPage/SearchPagination.tsx +++ b/website/src/components/SearchPage/SearchPagination.tsx @@ -17,12 +17,10 @@ export const SearchPagination: FC = ({ {setPage(newPage) + onChange={(_, newPage) => { + setPage(newPage); window.scrollTo({ top: 0, behavior: 'smooth' }); - } - - - } + }} color='primary' variant='outlined' shape='rounded'