Production release May 2024 [EXPLORE] #40
|
@ -28,7 +28,7 @@ export class SmoothScroll {
|
|||
if (this.interval) {
|
||||
clearInterval(this.interval);
|
||||
}
|
||||
const fragment = router.parseUrl(routerurl).fragment;
|
||||
const fragment = router.parseUrl(router.url).fragment;
|
||||
if (this.lastComponent !== this.currentComponent) {
|
||||
window.scrollTo({top: 0});
|
||||
}
|
||||
|
@ -78,4 +78,3 @@ export class SmoothScroll {
|
|||
}
|
||||
}
|
||||
}
|
||||
.
|
Loading…
Reference in New Issue