aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2013-10-21 20:39:15 +0200
committerFelix Nagel <info@felixnagel.com>2013-10-21 20:39:15 +0200
commit67e7f18d0884f9d574f686142cf489da1d537ac5 (patch)
tree9af72767bbf06fbc6cd44af1d376239826ab871a
parentfab6b8883e9464d101e2550dd2c12706a9de164d (diff)
downloadjquery-ui-67e7f18d0884f9d574f686142cf489da1d537ac5.tar.gz
jquery-ui-67e7f18d0884f9d574f686142cf489da1d537ac5.zip
Selectmenu: add ui-state-active class to active list item
-rw-r--r--ui/jquery.ui.selectmenu.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js
index 90dfce824..3fdde767b 100644
--- a/ui/jquery.ui.selectmenu.js
+++ b/ui/jquery.ui.selectmenu.js
@@ -201,6 +201,7 @@ $.widget( "ui.selectmenu", {
// Shouldn't the underlying menu always have accurate state?
this.menu.find( ".ui-state-focus" ).removeClass( "ui-state-focus" );
this.menuInstance.focus( null, this._getSelectedItem() );
+ this.menuItems.eq( this.element[ 0 ].selectedIndex ).addClass( "ui-state-active" );
}
this.isOpen = true;