Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit d0c31c188ed496f6d18265c6e41c91509bc03bbe 1 parent 59d1580
Felix Nagel fnagel authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  ui/jquery.ui.selectmenu.js
2  ui/jquery.ui.selectmenu.js
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.