mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Menu: Check that there is an active item in _activate()
Closes gh-1606
This commit is contained in:
committed by
Scott González
parent
623b64eefc
commit
d21aeee809
@@ -270,7 +270,7 @@ return $.widget( "ui.menu", {
|
||||
},
|
||||
|
||||
_activate: function( event ) {
|
||||
if ( !this.active.is( ".ui-state-disabled" ) ) {
|
||||
if ( this.active && !this.active.is( ".ui-state-disabled" ) ) {
|
||||
if ( this.active.children( "[aria-haspopup='true']" ).length ) {
|
||||
this.expand( event );
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user