From 8c1f4da31a5f505269f4e171387cf0f29e1b36d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Zaefferer?= Date: Tue, 16 Feb 2010 16:34:06 +0000 Subject: [PATCH] Another partial fix for #5188 - add ui-menu-item class only to list items with anchor-children --- ui/jquery.ui.autocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");