Selectmenu: selected callback event fired twice when using mouse

This commit is contained in:
Felix Nagel
2012-02-24 22:48:52 +01:00
parent 058cba236f
commit b356e1e4e1

View File

@@ -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;