Skip to content

Commit

Permalink
Autocomplete: fixed #5349 - Autocomplete: mouseover of menu item caus…
Browse files Browse the repository at this point in the history
…es data loss
  • Loading branch information
rdworth committed Mar 15, 2010
1 parent 2be4658 commit d2272f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/jquery.ui.autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit d2272f8

Please sign in to comment.