Scroll to top of page when changing path
This commit is contained in:
parent
fa66f4e918
commit
b1bbf7ee4e
1 changed files with 1 additions and 0 deletions
|
@ -52,6 +52,7 @@ export function doChangePath(path) {
|
||||||
const state = getState()
|
const state = getState()
|
||||||
const pageTitle = selectPageTitle(state)
|
const pageTitle = selectPageTitle(state)
|
||||||
window.document.title = pageTitle
|
window.document.title = pageTitle
|
||||||
|
window.scrollTo(0, 0)
|
||||||
|
|
||||||
const currentPage = selectCurrentPage(state)
|
const currentPage = selectCurrentPage(state)
|
||||||
if (currentPage === 'search') {
|
if (currentPage === 'search') {
|
||||||
|
|
Loading…
Reference in a new issue