Skip to content

Commit

Permalink
fixed bug with aria-expanded updating the wrong menu
Browse files Browse the repository at this point in the history
  • Loading branch information
jongund committed Oct 11, 2017
1 parent d5089cb commit b255fc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/menubar/menubar-1/js/PopupMenuLinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ PopupMenu.prototype.open = function () {
this.domNode.style.zIndex = 100;
}

this.controller.domNode.setAttribute('aria-expanded', 'true');
this.domNode.setAttribute('aria-expanded', 'true');

};

Expand All @@ -256,6 +256,6 @@ PopupMenu.prototype.close = function (force) {
if (force || (!this.hasFocus && !this.hasHover && !controllerHasHover)) {
this.domNode.style.display = 'none';
this.domNode.style.zIndex = 0;
this.controller.domNode.setAttribute('aria-expanded', 'false');
this.domNode.setAttribute('aria-expanded', 'false');
}
};

0 comments on commit b255fc5

Please sign in to comment.