Scroll global

This commit is contained in:
Daniel Cortes
2020-06-06 23:23:33 -04:00
parent 19d613028b
commit d67cb49f04
3 changed files with 1 additions and 10 deletions

View File

@@ -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);
}