mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Autocomplete: fixed #5349 - Autocomplete: mouseover of menu item causes data loss
This commit is contained in:
parent
2be46581da
commit
d2272f86bc
4
ui/jquery.ui.autocomplete.js
vendored
4
ui/jquery.ui.autocomplete.js
vendored
@ -119,7 +119,9 @@ $.widget( "ui.autocomplete", {
|
||||
}
|
||||
},
|
||||
blur: function( event, ui ) {
|
||||
self.element.val( self.term );
|
||||
if ( self.menu.element.is(":visible") ) {
|
||||
self.element.val( self.term );
|
||||
}
|
||||
}
|
||||
})
|
||||
.zIndex( this.element.zIndex() + 1 )
|
||||
|
Loading…
Reference in New Issue
Block a user