Selectmenu: fix _setSelected method, fixes aria-selected and unit tests

This commit is contained in:
Felix Nagel 2012-02-21 22:35:37 +01:00
parent 59d15809a3
commit d0c31c188e

View File

@ -387,7 +387,7 @@ $.widget( "ui.selectmenu", {
},
_setSelected: function( item ) {
var link = item.element.find("a");
var link = this._getSelectedItem().find("a");
// update button text
this.button.button( "option", "label", item.label );
// change ARIA attr