Autocomplete: fixed #5349 - Autocomplete: mouseover of menu item causes data loss

This commit is contained in:
Richard Worth 2010-03-15 21:24:42 +00:00
parent 2be46581da
commit d2272f86bc

View File

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