From 45263578dd1945342f65286653f382e1176200c0 Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Tue, 21 Feb 2012 23:44:32 +0100 Subject: Selectmenu: removed aria-activedescendant attr from button --- ui/jquery.ui.selectmenu.js | 4 +--- 1 file changed, 1 insertion(+), 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 ) { -- cgit v1.2.3