diff options
author | Rand Scullard <rand@randscullard.com> | 2015-09-28 16:15:46 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2016-03-30 14:43:03 -0400 |
commit | d21aeee8092b9c4e756606a39dd081ef3fbd5dbc (patch) | |
tree | 3e71976999d99309de1a98343469440148b19997 /ui | |
parent | 623b64eefc36ac841fde1e33db15903066cef94c (diff) | |
download | jquery-ui-d21aeee8092b9c4e756606a39dd081ef3fbd5dbc.tar.gz jquery-ui-d21aeee8092b9c4e756606a39dd081ef3fbd5dbc.zip |
Menu: Check that there is an active item in `_activate()`
Closes gh-1606
Diffstat (limited to 'ui')
-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 { |