Skip to content
Browse files

Selectmenu: selected callback event fired twice when using mouse

  • Loading branch information...
1 parent 058cba2 commit b356e1e4e19abb5cbc97350d29d954e3a7ebd4b6 @fnagel fnagel committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 ui/jquery.ui.selectmenu.js
View
6 ui/jquery.ui.selectmenu.js
@@ -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;

0 comments on commit b356e1e

Please sign in to comment.
Something went wrong with that request. Please try again.