mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Another partial fix for #5188 - add ui-menu-item class only to list items with anchor-children
This commit is contained in:
parent
4f4715017d
commit
8c1f4da31a
2
ui/jquery.ui.autocomplete.js
vendored
2
ui/jquery.ui.autocomplete.js
vendored
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user