Skip to content
Browse files

Selectmenu: removed aria-activedescendant attr from button

  • Loading branch information...
1 parent 52e43c0 commit 45263578dd1945342f65286653f382e1176200c0 @fnagel fnagel committed Feb 21, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 ui/jquery.ui.selectmenu.js
View
4 ui/jquery.ui.selectmenu.js
@@ -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 ) {

0 comments on commit 4526357

Please sign in to comment.
Something went wrong with that request. Please try again.