From b255fc521294060fdb6f9972d9143e549de9bc77 Mon Sep 17 00:00:00 2001 From: Jon Gunderson Date: Tue, 10 Oct 2017 22:20:36 -0400 Subject: [PATCH] fixed bug with aria-expanded updating the wrong menu --- examples/menubar/menubar-1/js/PopupMenuLinks.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/menubar/menubar-1/js/PopupMenuLinks.js b/examples/menubar/menubar-1/js/PopupMenuLinks.js index d68b89cb41..cb240523db 100644 --- a/examples/menubar/menubar-1/js/PopupMenuLinks.js +++ b/examples/menubar/menubar-1/js/PopupMenuLinks.js @@ -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'); }; @@ -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'); } };