From e79700eb288fd0fdc441311d0ee8c7bb887c8f22 Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Tue, 22 Nov 2011 00:11:23 +0100 Subject: Selectmenu: fixed aria-hidden attribute --- ui/jquery.ui.selectmenu.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index a7b63e57f..b8aec3750 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -200,6 +200,7 @@ $.widget( "ui.selectmenu", { } this.menuWrap.addClass( 'ui-selectmenu-open' ); + this.menu.attr("aria-hidden", false); // needs to be fired after the document click event has closed all other Selectmenus // otherwise the current item is not indicated // TODO check if this should be handled by Menu @@ -241,6 +242,7 @@ $.widget( "ui.selectmenu", { } this.menuWrap.removeClass( 'ui-selectmenu-open' ); + this.menu.attr("aria-hidden", true); this.isOpen = false; if ( focus ) { -- cgit v1.2.3