mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-05-13 03:01:39 -04:00
Menu: Check that the event object is defined before checking type, in conformance to revision e2a6cdd525 and in order to make Selectmenu work again
This commit is contained in:
2
ui/jquery.ui.menu.js
vendored
2
ui/jquery.ui.menu.js
vendored
@@ -330,7 +330,7 @@ $.widget( "ui.menu", {
|
||||
// highlight active parent menu item, if any
|
||||
this.active.parent().closest( ".ui-menu-item" ).children( "a:first" ).addClass( "ui-state-active" );
|
||||
|
||||
if ( event.type === "keydown" ) {
|
||||
if ( event && event.type === "keydown" ) {
|
||||
this._close();
|
||||
} else {
|
||||
this.timer = this._delay(function() {
|
||||
|
||||
Reference in New Issue
Block a user