diff options
author | Felix Nagel <info@felixnagel.com> | 2013-10-21 20:39:15 +0200 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2013-10-21 20:39:15 +0200 |
commit | 67e7f18d0884f9d574f686142cf489da1d537ac5 (patch) | |
tree | 9af72767bbf06fbc6cd44af1d376239826ab871a | |
parent | fab6b8883e9464d101e2550dd2c12706a9de164d (diff) | |
download | jquery-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.js | 1 |
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; |