Selectmenu: removed aria-activedescendant attr from button

This commit is contained in:
Felix Nagel 2012-02-21 23:44:32 +01:00
parent 52e43c076f
commit 45263578dd

View File

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