Permalink
Browse files

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

  • Loading branch information...
1 parent 59d1580 commit d0c31c188ed496f6d18265c6e41c91509bc03bbe @fnagel fnagel committed Feb 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.selectmenu.js
@@ -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

0 comments on commit d0c31c1

Please sign in to comment.