]> source.dussan.org Git - jquery-ui.git/commitdiff
Autocomplete: Fixed #5348 - Autocomplete: menu item should not remain selected when...
authorRichard Worth <rdworth@gmail.com>
Mon, 15 Mar 2010 20:57:02 +0000 (20:57 +0000)
committerRichard Worth <rdworth@gmail.com>
Mon, 15 Mar 2010 20:57:02 +0000 (20:57 +0000)
ui/jquery.ui.autocomplete.js

index ece6df4d5d5412efc56b02627f8a9726c97237da..7349ce98b7e0fd6f601253a704070fb4228d7095 100644 (file)
@@ -347,6 +347,9 @@ $.widget("ui.menu", {
                        // mouseenter doesn't work with event delegation
                        .mouseenter(function() {
                                self.activate($(this).parent());
+                       })
+                       .mouseleave(function() {
+                               self.deactivate();
                        });
        },