diff --git a/src/components/PageLayout/MenuMain/MenuMain.tsx b/src/components/PageLayout/MenuMain/MenuMain.tsx index 4cf40570..540de24c 100644 --- a/src/components/PageLayout/MenuMain/MenuMain.tsx +++ b/src/components/PageLayout/MenuMain/MenuMain.tsx @@ -36,10 +36,10 @@ export const MenuMain: FC = () => { fullWidthMenu && setIsVisible(false) } - router.events.on('routeChangeStart', handleRouteChange) + router.events.on('routeChangeComplete', handleRouteChange) return () => { - router.events.off('routeChangeStart', handleRouteChange) + router.events.off('routeChangeComplete', handleRouteChange) } }, [router, fullWidthMenu])