Fix scroll bug after push

This commit is contained in:
2020-12-17 23:19:21 +01:00
parent f86394612f
commit 7c827426f5
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ export default function Navigasyon({selectedTab}) {
setValue(newValue)
if (newValue !== selectedTab) {
router.push(tabRouteHref[newValue], tabRouteAs[newValue])
router.push(tabRouteHref[newValue], tabRouteAs[newValue]).then(() => window.scrollTo(0, 0))
}
}