aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2010-03-15 21:11:21 +0000
committerRichard Worth <rdworth@gmail.com>2010-03-15 21:11:21 +0000
commit2be46581da77440b88a9cd55a129c90c6af7a82d (patch)
treeb3e4bd13aa96f9e1d311cd61c85932c578d99aa1 /ui
parente6c30b0d9712f66b0a2258e3b3a9e7ec571cb5fc (diff)
downloadjquery-ui-2be46581da77440b88a9cd55a129c90c6af7a82d.tar.gz
jquery-ui-2be46581da77440b88a9cd55a129c90c6af7a82d.zip
Autocomplete: fixed #5349 - Autocomplete: mouseover of menu item causes data loss
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.autocomplete.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js
index 7349ce98b..2efd4e64b 100644
--- a/ui/jquery.ui.autocomplete.js
+++ b/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;
},