Skip to content

Commit

Permalink
Selectmenu: fix _setSelected method, fixes aria-selected and unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fnagel committed Feb 21, 2012
1 parent 59d1580 commit d0c31c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/jquery.ui.selectmenu.js
Expand Up @@ -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
Expand Down

0 comments on commit d0c31c1

Please sign in to comment.