Skip to content

Commit

Permalink
mitigating for lack of router events
Browse files Browse the repository at this point in the history
  • Loading branch information
katiegoines committed Jun 12, 2024
1 parent 4c024fd commit 38409ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Menu/MenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export function MenuItem({
mainContent?.focus();
};

router.events.on('routeChangeComplete', focusContent);
router.events?.on('routeChangeComplete', focusContent);
}, [router.events, mainId]);

if (
Expand Down

0 comments on commit 38409ef

Please sign in to comment.