From b1bbf7ee4e0d693e21e517da61e6eb55b1c95a1c Mon Sep 17 00:00:00 2001 From: 6ea86b96 <6ea86b96@gmail.com> Date: Wed, 31 May 2017 14:24:55 +0400 Subject: [PATCH] Scroll to top of page when changing path --- ui/js/actions/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/js/actions/app.js b/ui/js/actions/app.js index a513b820c..bf0451c82 100644 --- a/ui/js/actions/app.js +++ b/ui/js/actions/app.js @@ -52,6 +52,7 @@ export function doChangePath(path) { const state = getState() const pageTitle = selectPageTitle(state) window.document.title = pageTitle + window.scrollTo(0, 0) const currentPage = selectCurrentPage(state) if (currentPage === 'search') {