mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-05-13 03:01:39 -04:00
Selectmenu: selected callback event fired twice when using mouse
This commit is contained in:
6
ui/jquery.ui.selectmenu.js
vendored
6
ui/jquery.ui.selectmenu.js
vendored
@@ -140,9 +140,9 @@ $.widget( "ui.selectmenu", {
|
||||
if ( that.focus !== undefined ) {
|
||||
if ( item.index != that.focus ) {
|
||||
that._trigger( "focus", event, { item: item } );
|
||||
}
|
||||
if ( !that.isOpen ) {
|
||||
that._select( item, event );
|
||||
if ( !that.isOpen ) {
|
||||
that._select( item, event );
|
||||
}
|
||||
}
|
||||
}
|
||||
that.focus = item.index;
|
||||
|
||||
Reference in New Issue
Block a user