Scroll global
This commit is contained in:
@@ -36,6 +36,7 @@ export const Paginate = (props) => {
|
||||
|
||||
const handleClick = (page) => (evt) => {
|
||||
evt.preventDefault();
|
||||
document.getElementById('root').scrollIntoView({behavior: 'smooth'});
|
||||
if (currentPage !== page) gotoPage(page);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user