mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-05-13 03:01:39 -04:00
Selectmenu: fixed aria-hidden attribute
This commit is contained in:
2
ui/jquery.ui.selectmenu.js
vendored
2
ui/jquery.ui.selectmenu.js
vendored
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user