Skip to content

Commit

Permalink
Align how we access the menu element with the checkboxes and radios
Browse files Browse the repository at this point in the history
See: 266f877
  • Loading branch information
romaricpascal committed Sep 22, 2023
1 parent 7388b1c commit 4ae36ea
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ export class Header extends GOVUKFrontendComponent {
return this
}

const $menu = $module.querySelector(
`#${$menuButton.getAttribute('aria-controls')}`
const $menu = document.getElementById(
$menuButton.getAttribute('aria-controls')
)

if (!($menuButton instanceof HTMLElement)) {
Expand Down

0 comments on commit 4ae36ea

Please sign in to comment.