From c3d382e9013674bd1bd78e327fca4257c200d357 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=CC=88rn=20Zaefferer?= Date: Tue, 3 Dec 2013 21:57:58 +0100 Subject: [PATCH] Menu: Remove preventDefault for disabled menu items, since there is no default on list items. Follow-up to fe7c3003741cd5221e076235263df2b3d2fa9202 and the anchor removal in general --- ui/jquery.ui.menu.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js index f160f8e6b..61eecb3b5 100644 --- a/ui/jquery.ui.menu.js +++ b/ui/jquery.ui.menu.js @@ -64,9 +64,6 @@ $.widget( "ui.menu", { "mousedown .ui-menu-item": function( event ) { event.preventDefault(); }, - "click .ui-state-disabled": function( event ) { - event.preventDefault(); - }, "click .ui-menu-item": function( event ) { var target = $( event.target ); if ( !this.mouseHandled && target.not( ".ui-state-disabled" ).length ) { -- 2.39.5