Skip to content

Commit 8c5c6e0

Browse files
committed
Menu: Added check for the disabled option on create.
1 parent 6800e1a commit 8c5c6e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ui/jquery.ui.menu.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ $.widget( "ui.menu", {
4545
event.preventDefault();
4646
}
4747
}, this));
48+
if ( this.options.disabled ) {
49+
this.element.addClass( "ui-state-disabled" );
50+
}
4851
this._bind({
4952
// Prevent focus from sticking to links inside menu after clicking
5053
// them (focus should always stay on UL during navigation).

0 commit comments

Comments
 (0)