Skip to content
Permalink
Browse files

Autocomplete: fixed #5349 - Autocomplete: mouseover of menu item caus…

…es data loss
  • Loading branch information...
rdworth committed Mar 15, 2010
1 parent e6c30b0 commit 2be46581da77440b88a9cd55a129c90c6af7a82d
Showing with 4 additions and 0 deletions.
  1. +4 −0 ui/jquery.ui.autocomplete.js
@@ -117,6 +117,9 @@ $.widget( "ui.autocomplete", {
if ( self.element[0] !== doc.activeElement ) {
self.element.focus();
}
},
blur: function( event, ui ) {
self.element.val( self.term );
}
})
.zIndex( this.element.zIndex() + 1 )
@@ -379,6 +382,7 @@ $.widget("ui.menu", {
this.active.children("a")
.removeClass("ui-state-hover")
.removeAttr("id");
this._trigger("blur", null, {});
this.active = null;
},

0 comments on commit 2be4658

Please sign in to comment.
You can’t perform that action at this time.