mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Selectmenu: fixed method _setSelected called twice
This commit is contained in:
parent
afec3f9e0b
commit
7e8e542667
5
ui/jquery.ui.selectmenu.js
vendored
5
ui/jquery.ui.selectmenu.js
vendored
@ -60,8 +60,8 @@ $.widget( "ui.selectmenu", {
|
|||||||
self.element.bind( 'click.selectmenu', function() {
|
self.element.bind( 'click.selectmenu', function() {
|
||||||
self.newelement.focus();
|
self.newelement.focus();
|
||||||
return false;
|
return false;
|
||||||
})
|
});
|
||||||
.hide();
|
// .hide();
|
||||||
|
|
||||||
// create button
|
// create button
|
||||||
self.newelement = $( '<a />', {
|
self.newelement = $( '<a />', {
|
||||||
@ -187,7 +187,6 @@ $.widget( "ui.selectmenu", {
|
|||||||
},
|
},
|
||||||
focus: function( event, ui ) {
|
focus: function( event, ui ) {
|
||||||
var item = ui.item.data( "item.selectmenu" );
|
var item = ui.item.data( "item.selectmenu" );
|
||||||
if ( !self.opened ) self._setSelected( event, item );
|
|
||||||
self._trigger( "focus", event, { item: item } );
|
self._trigger( "focus", event, { item: item } );
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user