Skip to content

Commit 67e7f18

Browse files
committed
Selectmenu: add ui-state-active class to active list item
1 parent fab6b88 commit 67e7f18

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ui/jquery.ui.selectmenu.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ $.widget( "ui.selectmenu", {
201201
// Shouldn't the underlying menu always have accurate state?
202202
this.menu.find( ".ui-state-focus" ).removeClass( "ui-state-focus" );
203203
this.menuInstance.focus( null, this._getSelectedItem() );
204+
this.menuItems.eq( this.element[ 0 ].selectedIndex ).addClass( "ui-state-active" );
204205
}
205206

206207
this.isOpen = true;

0 commit comments

Comments
 (0)