We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a59b3c7 commit 228a9b9Copy full SHA for 228a9b9
ui/jquery.ui.selectmenu.js
@@ -230,9 +230,11 @@ $.widget( "ui.selectmenu", {
230
231
close: function( event ) {
232
if ( this.isOpen ) {
233
+ var id = this._getSelectedItem().find( "a" ).attr( "id" );
234
this.isOpen = false;
235
this._toggleAttr();
- this.button.attr( "aria-activedescendant", this._getSelectedItem().find( "a" ).attr( "id" ) );
236
+ this.button.attr( "aria-activedescendant", id );
237
+ this.menu.attr( "aria-activedescendant", id );
238
this._trigger( "close", event );
239
}
240
},
0 commit comments