mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Selectmenu: removed aria-activedescendant attr from button
This commit is contained in:
parent
52e43c076f
commit
45263578dd
4
ui/jquery.ui.selectmenu.js
vendored
4
ui/jquery.ui.selectmenu.js
vendored
@ -391,13 +391,11 @@ $.widget( "ui.selectmenu", {
|
||||
},
|
||||
|
||||
_setSelected: function( item ) {
|
||||
var link = this._getSelectedItem().find("a");
|
||||
// update button text
|
||||
this.button.find( "span.ui-button-text" ).html( item.label );
|
||||
// change ARIA attr
|
||||
this.button.add( this.menu ).attr( "aria-activedescendant" , link.attr( "id" ) );
|
||||
this.menuItems.find("a").attr( "aria-selected", false );
|
||||
link.attr( "aria-selected", true );
|
||||
this._getSelectedItem().find("a").attr( "aria-selected", true );
|
||||
},
|
||||
|
||||
_setOption: function( key, value ) {
|
||||
|
Loading…
Reference in New Issue
Block a user