diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-03-20 14:37:25 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-03-20 14:37:25 -0400 |
commit | 22ba931c395aa8859c0cc7a2cf08e7bb0027db78 (patch) | |
tree | 871652d6fd6d6dc8a3bfc512f068f512a5d7c4df /ui | |
parent | 65d8fa2b0cb8b96cf3e869481546ed22a19f98ff (diff) | |
download | jquery-ui-22ba931c395aa8859c0cc7a2cf08e7bb0027db78.tar.gz jquery-ui-22ba931c395aa8859c0cc7a2cf08e7bb0027db78.zip |
Menu: skip over elements that aren't menu items.
Fixes #5188 - Refactor menu rendering for more customizing.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.autocomplete.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index f9fa50380..c5b78a6e3 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -391,11 +391,11 @@ $.widget("ui.menu", { }, next: function(event) { - this.move("next", "li:first", event); + this.move("next", ".ui-menu-item:first", event); }, previous: function(event) { - this.move("prev", "li:last", event); + this.move("prev", ".ui-menu-item:last", event); }, first: function() { @@ -411,7 +411,7 @@ $.widget("ui.menu", { this.activate(event, this.element.children(edge)); return; } - var next = this.active[direction](); + var next = this.active[direction + "All"](".ui-menu-item").eq(0); if (next.length) { this.activate(event, next); } else { |