mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-05-13 03:01:39 -04:00
Selectmenu: fire focus event when menu is opened
This commit is contained in:
2
ui/jquery.ui.selectmenu.js
vendored
2
ui/jquery.ui.selectmenu.js
vendored
@@ -133,7 +133,7 @@ $.widget( "ui.selectmenu", {
|
||||
var item = ui.item.data( "ui-selectmenu-item" );
|
||||
|
||||
// prevent inital focus from firing and checks if its a newly focused item
|
||||
if ( !that.isOpen && that.focusIndex !== undefined && item.index !== that.focusIndex ) {
|
||||
if ( that.focusIndex !== undefined && item.index !== that.focusIndex ) {
|
||||
that._trigger( "focus", event, { item: item } );
|
||||
if ( !that.isOpen ) {
|
||||
that._select( item, event );
|
||||
|
||||
Reference in New Issue
Block a user