Skip to content

Commit

Permalink
change focus on click
Browse files Browse the repository at this point in the history
  • Loading branch information
katiegoines committed May 20, 2024
1 parent 88c736b commit 444b3d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/Menu/MenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ export function MenuItem({
// Close the menu after clicking a link (applies to the mobile menu)
toggleMenuOpen(false);
}

const mainContent = document.getElementById('pageMain');
mainContent?.focus();
};

const handleFocus = () => {
Expand Down

0 comments on commit 444b3d5

Please sign in to comment.