Skip to content

Commit d4c7e6f

Browse files
committed
fix menus.js null dereference
1 parent edc6b56 commit d4c7e6f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

frontend/static/menus.js

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
this._firstMenuLink = this._menu.querySelector(MENU_LINK_SELECTOR);
6060

6161
// Set ARIA attributes
62+
if (!this._link) return;
6263
this._link.setAttribute('aria-haspopup', 'true');
6364
this._menu.setAttribute(ARIA_ROLE, 'menu');
6465
this._menu.setAttribute('aria-labelledby', this._link.getAttribute('id'));

0 commit comments

Comments
 (0)