Smooth scroll to the top on page change

This commit is contained in:
Daniel Cortes
2020-06-04 20:08:31 -04:00
parent 272d67c818
commit 26b9aeaa03

View File

@@ -369,6 +369,7 @@ export class Search extends React.Component {
handlePageChange = (who, page) => {
this.setState({who: who, page: page}, this.navigateToState);
window.scroll({left: 0, top: 0, behavior: 'smooth'});
};
render = () => (