diff options
author | Felix Nagel <info@felixnagel.com> | 2012-02-21 23:44:32 +0100 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2012-02-21 23:44:32 +0100 |
commit | 45263578dd1945342f65286653f382e1176200c0 (patch) | |
tree | 39ef464fe9b4ed39db840faf885fb1d8d593e70c /ui/jquery.ui.selectmenu.js | |
parent | 52e43c076fc92c88d7a5ea5f101e7d7a9922afea (diff) | |
download | jquery-ui-45263578dd1945342f65286653f382e1176200c0.tar.gz jquery-ui-45263578dd1945342f65286653f382e1176200c0.zip |
Selectmenu: removed aria-activedescendant attr from button
Diffstat (limited to 'ui/jquery.ui.selectmenu.js')
-rw-r--r-- | ui/jquery.ui.selectmenu.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 5dfd6af75..6d47baac9 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/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 ) { |