1 parent edc6b56 commit d4c7e6fCopy full SHA for d4c7e6f
1 file changed
frontend/static/menus.js
@@ -59,6 +59,7 @@
59
this._firstMenuLink = this._menu.querySelector(MENU_LINK_SELECTOR);
60
61
// Set ARIA attributes
62
+ if (!this._link) return;
63
this._link.setAttribute('aria-haspopup', 'true');
64
this._menu.setAttribute(ARIA_ROLE, 'menu');
65
this._menu.setAttribute('aria-labelledby', this._link.getAttribute('id'));
0 commit comments