Skip to content

Commit e6c30b0

Browse files
committed
Autocomplete: Fixed #5348 - Autocomplete: menu item should not remain selected when mouse off menu
1 parent 9aa5638 commit e6c30b0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ui/jquery.ui.autocomplete.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,9 @@ $.widget("ui.menu", {
347347
// mouseenter doesn't work with event delegation
348348
.mouseenter(function() {
349349
self.activate($(this).parent());
350+
})
351+
.mouseleave(function() {
352+
self.deactivate();
350353
});
351354
},
352355

0 commit comments

Comments
 (0)