mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00: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:
parent
31a38e972e
commit
8fbdd7cc38
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
|
// highlight active parent menu item, if any
|
||||||
this.active.parent().closest( ".ui-menu-item" ).children( "a:first" ).addClass( "ui-state-active" );
|
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();
|
this._close();
|
||||||
} else {
|
} else {
|
||||||
this.timer = this._delay(function() {
|
this.timer = this._delay(function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user