diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-07-19 11:51:05 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-07-19 11:51:05 -0400 |
commit | 5311fe22f327d275f6f8d885da1ce6bbc2c4a681 (patch) | |
tree | c37f1cf601aeea8ab1c95cad9bddd9f4d15f3f81 /ui/jquery.ui.autocomplete.js | |
parent | a090faa833cf5b40105bb4aa74bca7ac39366fe9 (diff) | |
download | jquery-ui-5311fe22f327d275f6f8d885da1ce6bbc2c4a681.tar.gz jquery-ui-5311fe22f327d275f6f8d885da1ce6bbc2c4a681.zip |
Menu: Only look for .ui-menu-item elements to determine if a menu item is the first or last element in the menu. Fixes #5528 - Autocomplete: Issue when try to navigate using up key by keyboard in IE6.
Diffstat (limited to 'ui/jquery.ui.autocomplete.js')
-rw-r--r-- | ui/jquery.ui.autocomplete.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index 1391643ba..3f010c1f4 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -433,11 +433,11 @@ $.widget("ui.menu", { }, first: function() { - return this.active && !this.active.prev().length; + return this.active && !this.active.prevAll(".ui-menu-item").length; }, last: function() { - return this.active && !this.active.next().length; + return this.active && !this.active.nextAll(".ui-menu-item").length; }, move: function(direction, edge, event) { |