Permalink
Browse files

Menu: Check that there is an active item in `_activate()`

Closes gh-1606
  • Loading branch information...
RandScullard authored and scottgonzalez committed Sep 28, 2015
1 parent 623b64e commit d21aeee8092b9c4e756606a39dd081ef3fbd5dbc
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/widgets/menu.js
View
@@ -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 {

0 comments on commit d21aeee

Please sign in to comment.