summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2010-02-16 16:34:06 +0000
committerJörn Zaefferer <joern.zaefferer@gmail.com>2010-02-16 16:34:06 +0000
commit8c1f4da31a5f505269f4e171387cf0f29e1b36d3 (patch)
treec8eedfb72e78b9b7dfc95e418dd9f75e72bcbd30
parent4f4715017d140daf44522962de0823c6de80628c (diff)
downloadjquery-ui-8c1f4da31a5f505269f4e171387cf0f29e1b36d3.tar.gz
jquery-ui-8c1f4da31a5f505269f4e171387cf0f29e1b36d3.zip
Another partial fix for #5188 - add ui-menu-item class only to list items with anchor-children
-rw-r--r--ui/jquery.ui.autocomplete.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js
index 38b23fc9d..4e7e50e15 100644
--- a/ui/jquery.ui.autocomplete.js
+++ b/ui/jquery.ui.autocomplete.js
@@ -328,7 +328,7 @@ $.widget("ui.menu", {
var self = this;
// don't refresh list items that are already adapted
- var items = this.element.children("li:not(.ui-menu-item)")
+ var items = this.element.children("li:not(.ui-menu-item):has(a)")
.addClass("ui-menu-item")
.attr("role", "menuitem");