diff options
Diffstat (limited to 'ui/widgets/menu.js')
-rw-r--r-- | ui/widgets/menu.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/widgets/menu.js b/ui/widgets/menu.js index c5627cc20..f63105fa7 100644 --- a/ui/widgets/menu.js +++ b/ui/widgets/menu.js @@ -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 { |