From e6c30b0d9712f66b0a2258e3b3a9e7ec571cb5fc Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Mon, 15 Mar 2010 20:57:02 +0000 Subject: [PATCH] Autocomplete: Fixed #5348 - Autocomplete: menu item should not remain selected when mouse off menu --- ui/jquery.ui.autocomplete.js | 3 +++ 1 file changed, 3 insertions(+) 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(); }); }, -- 2.39.5