From 38409ef9fb9b635ca581ecc41a62fbd7c02308af Mon Sep 17 00:00:00 2001 From: katiegoines Date: Wed, 12 Jun 2024 04:17:38 -0700 Subject: [PATCH] mitigating for lack of router events --- src/components/Menu/MenuItem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Menu/MenuItem.tsx b/src/components/Menu/MenuItem.tsx index 1a8115d2af6..68697e463f8 100644 --- a/src/components/Menu/MenuItem.tsx +++ b/src/components/Menu/MenuItem.tsx @@ -115,7 +115,7 @@ export function MenuItem({ mainContent?.focus(); }; - router.events.on('routeChangeComplete', focusContent); + router.events?.on('routeChangeComplete', focusContent); }, [router.events, mainId]); if (