Permalink
Browse files

Selectmenu: fixed method _setSelected called twice

  • Loading branch information...
1 parent afec3f9 commit 7e8e542667947674f3922e1af8801c9b3030217a @fnagel fnagel committed Sep 27, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 ui/jquery.ui.selectmenu.js
@@ -60,8 +60,8 @@ $.widget( "ui.selectmenu", {
self.element.bind( 'click.selectmenu', function() {
self.newelement.focus();
return false;
- })
- .hide();
+ });
+ // .hide();
// create button
self.newelement = $( '<a />', {
@@ -187,7 +187,6 @@ $.widget( "ui.selectmenu", {
},
focus: function( event, ui ) {
var item = ui.item.data( "item.selectmenu" );
- if ( !self.opened ) self._setSelected( event, item );
self._trigger( "focus", event, { item: item } );
}
})

0 comments on commit 7e8e542

Please sign in to comment.