mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Menu: Added check for the disabled option on create.
This commit is contained in:
parent
6800e1a2f9
commit
8c5c6e0a32
3
ui/jquery.ui.menu.js
vendored
3
ui/jquery.ui.menu.js
vendored
@ -45,6 +45,9 @@ $.widget( "ui.menu", {
|
|||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
}, this));
|
}, this));
|
||||||
|
if ( this.options.disabled ) {
|
||||||
|
this.element.addClass( "ui-state-disabled" );
|
||||||
|
}
|
||||||
this._bind({
|
this._bind({
|
||||||
// Prevent focus from sticking to links inside menu after clicking
|
// Prevent focus from sticking to links inside menu after clicking
|
||||||
// them (focus should always stay on UL during navigation).
|
// them (focus should always stay on UL during navigation).
|
||||||
|
Loading…
Reference in New Issue
Block a user