mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Selectmenu: focus selected item when menu opens
This commit is contained in:
parent
684b55bcbc
commit
7725e4adba
1
ui/jquery.ui.selectmenu.js
vendored
1
ui/jquery.ui.selectmenu.js
vendored
@ -201,6 +201,7 @@ $.widget( "ui.selectmenu", {
|
||||
|
||||
this.isOpen = true;
|
||||
this._toggleAttr();
|
||||
this.menu.menu( "focus", event, this._getSelectedItem() );
|
||||
|
||||
if ( this.items && !this.options.dropdown ) {
|
||||
var currentItem = this._getSelectedItem();
|
||||
|
Loading…
Reference in New Issue
Block a user