Permalink
Browse files

Selectmenu: use item.index instead of _getSelectedItem method

  • Loading branch information...
1 parent 40b8567 commit aa60a9e1149f85e7a8c35c43bc0ce5f2feab25eb @fnagel fnagel committed Dec 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.selectmenu.js
@@ -389,7 +389,7 @@ $.widget( "ui.selectmenu", {
this.buttonText.html( item.label );
// change ARIA attr
this.menuItems.find( "a" ).attr( "aria-selected", false );
- this._getSelectedItem().find( "a" ).attr( "aria-selected", true );
+ this.menuItems.eq( item.index ).find( "a" ).attr( "aria-selected", true );
this.button.attr( "aria-labelledby", this.menuItems.eq( item.index ).find( "a" ).attr( "id" ) );
},

0 comments on commit aa60a9e

Please sign in to comment.