Selectmenu: fixed aria-hidden attribute

This commit is contained in:
Felix Nagel 2011-11-22 00:11:23 +01:00
parent 74b8a504bc
commit e79700eb28

View File

@ -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 ) {