We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5df3a5 commit bf977a6Copy full SHA for bf977a6
ui/jquery.ui.menu.js
@@ -155,11 +155,11 @@ $.widget("ui.menu", {
155
},
156
157
first: function() {
158
- return this.active && !this.active.prev().length;
+ return this.active && !this.active.prevAll(".ui-menu-item").length;
159
160
161
last: function() {
162
- return this.active && !this.active.next().length;
+ return this.active && !this.active.nextAll(".ui-menu-item").length;
163
164
165
_move: function(direction, edge, event) {
0 commit comments