mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Menu: Make sure the next element is defined in addition to checking length != 0
This commit is contained in:
parent
3ef4db2670
commit
1cd26fc759
2
ui/jquery.ui.menu.js
vendored
2
ui/jquery.ui.menu.js
vendored
@ -455,7 +455,7 @@ $.widget( "ui.menu", {
|
||||
next = this.active[ direction + "All" ]( ".ui-menu-item" ).not( ".ui-state-disabled" ).eq( 0 );
|
||||
}
|
||||
}
|
||||
if ( !next.length || !this.active ) {
|
||||
if ( !next || !next.length || !this.active ) {
|
||||
next = this.activeMenu.children( ".ui-menu-item" )[ filter ]();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user