diff --git a/app/javascript/controllers/menu_button_controller.ts b/app/javascript/controllers/menu_button_controller.ts index 19e23f2e3..62d6d90d1 100644 --- a/app/javascript/controllers/menu_button_controller.ts +++ b/app/javascript/controllers/menu_button_controller.ts @@ -68,7 +68,7 @@ export class MenuButtonController extends ApplicationController { } private open(focusMenuItem: 'first' | 'last' = 'first') { - this.buttonTarget.setAttribute('aria-expanded', ''); + this.buttonTarget.setAttribute('aria-expanded', 'true'); this.menuTarget.parentElement?.classList.add('open'); this.menuTarget.focus();