Skip to content

Commit

Permalink
Merge pull request #148 from 10up/release/#147-2.0.5
Browse files Browse the repository at this point in the history
Release/#147 2.0.5
  • Loading branch information
joesnellpdx authored Apr 17, 2023
2 parents c933a2e + 8985bca commit 7e77a0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/navigation/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@10up/component-navigation",
"version": "2.1.4",
"version": "2.1.5",
"author": "10up",
"description": "Accessible navigation component.",
"main": "dist/index.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/navigation/src/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,10 @@ export default class Navigation {
* Adds JS classes and initial AIRA attributes.
*/
setupSubMenus() {
const id = this.$menu.getAttribute('id') ?? '';
this.$submenus.forEach(($submenu, index) => {
const $anchor = $submenu.previousElementSibling;
const submenuID = `tenUp-submenu-${index}`;
const submenuID = `tenUp-submenu-${id}-${index}`;

$submenu.setAttribute('id', submenuID);

Expand Down

0 comments on commit 7e77a0b

Please sign in to comment.