Autocomplete: Fixed #5348 - Autocomplete: menu item should not remain selected when mouse off menu

This commit is contained in:
Richard Worth 2010-03-15 20:57:02 +00:00
parent 9aa56386a3
commit e6c30b0d97

View File

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