mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-10-05 01:44:18 +00:00
Selectmenu: fixed aria-hidden attribute
This commit is contained in:
parent
74b8a504bc
commit
e79700eb28
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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user