We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c933a2e + 8985bca commit 7e77a0bCopy full SHA for 7e77a0b
packages/navigation/package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@10up/component-navigation",
3
- "version": "2.1.4",
+ "version": "2.1.5",
4
"author": "10up",
5
"description": "Accessible navigation component.",
6
"main": "dist/index.js",
packages/navigation/src/navigation.js
@@ -200,9 +200,10 @@ export default class Navigation {
200
* Adds JS classes and initial AIRA attributes.
201
*/
202
setupSubMenus() {
203
+ const id = this.$menu.getAttribute('id') ?? '';
204
this.$submenus.forEach(($submenu, index) => {
205
const $anchor = $submenu.previousElementSibling;
- const submenuID = `tenUp-submenu-${index}`;
206
+ const submenuID = `tenUp-submenu-${id}-${index}`;
207
208
$submenu.setAttribute('id', submenuID);
209
0 commit comments