From: Richard Worth Date: Mon, 15 Mar 2010 20:57:02 +0000 (+0000) Subject: Autocomplete: Fixed #5348 - Autocomplete: menu item should not remain selected when... X-Git-Tag: 1.8~26 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e6c30b0d9712f66b0a2258e3b3a9e7ec571cb5fc;p=jquery-ui.git Autocomplete: Fixed #5348 - Autocomplete: menu item should not remain selected when mouse off menu --- diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index ece6df4d5..7349ce98b 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -347,6 +347,9 @@ $.widget("ui.menu", { // mouseenter doesn't work with event delegation .mouseenter(function() { self.activate($(this).parent()); + }) + .mouseleave(function() { + self.deactivate(); }); },