From aa60a9e1149f85e7a8c35c43bc0ce5f2feab25eb Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Mon, 3 Dec 2012 23:19:15 +0100 Subject: [PATCH] Selectmenu: use item.index instead of _getSelectedItem method --- ui/jquery.ui.selectmenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index d97b52387..83407ec09 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/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" ) ); },