We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b45d61 commit 5e35a0cCopy full SHA for 5e35a0c
ui/jquery.ui.menu.js
@@ -37,12 +37,14 @@ $.widget( "ui.menu", {
37
.attr({
38
id: this.menuId,
39
role: "menu"
40
+ })
41
+ // need to catch all clicks on disabled menu
42
+ // not possible through _bind
43
+ .bind("click.menu", function( event ) {
44
+ if ( self.options.disabled ) {
45
+ event.preventDefault();
46
+ }
47
});
- this.element.bind("click.menu", function( event ) {
- if ( self.options.disabled ) {
- event.preventDefault();
- }
- });
48
this._bind({
49
"click .ui-menu-item:has(a)": function( event ) {
50
event.stopImmediatePropagation();
0 commit comments