Skip to content

Commit

Permalink
fix menus.js null dereference
Browse files Browse the repository at this point in the history
  • Loading branch information
RTXUX committed Sep 20, 2022
1 parent edc6b56 commit d4c7e6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/static/menus.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
this._firstMenuLink = this._menu.querySelector(MENU_LINK_SELECTOR);

// Set ARIA attributes
if (!this._link) return;
this._link.setAttribute('aria-haspopup', 'true');
this._menu.setAttribute(ARIA_ROLE, 'menu');
this._menu.setAttribute('aria-labelledby', this._link.getAttribute('id'));
Expand Down

0 comments on commit d4c7e6f

Please sign in to comment.