Fix scroll bug after push
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user