Skip to content
Snippets Groups Projects
Commit 066ebb9c authored by Hugo NOUTS's avatar Hugo NOUTS
Browse files

Merge branch 'fix/scroll-to-top' into 'dev'

fix(scrollToTop): scrollbar now goes back to top of the page

See merge request web-et-numerique/llle_project/ecolyo!415
parents 2abb6675 5a704683
Branches
Tags
2 merge requests!435WIP: 1.4.0,!415fix(scrollToTop): scrollbar now goes back to top of the page
......@@ -34,7 +34,7 @@ const Content: React.FC<ContentProps> = ({
useEffect(() => {
const unlisten = history.listen(() => {
window.scrollTo(0, 0)
document.querySelector('.app-content')!.scrollTo(0, 0)
})
return () => {
unlisten()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment