From 597a313ab67bc10627d9c17c941776514ea5bd7c Mon Sep 17 00:00:00 2001 From: Andrew Powell Date: Thu, 26 May 2011 12:22:40 -0400 Subject: Button: adding event.preventDefault. Fixes #5945 - Disabled buttons still allow clicks --- ui/jquery.ui.button.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js index 3f3b90e92..32e00e9e0 100644 --- a/ui/jquery.ui.button.js +++ b/ui/jquery.ui.button.js @@ -97,6 +97,7 @@ $.widget( "ui.button", { }) .bind( "click.button", function( event ) { if ( options.disabled ) { + event.preventDefault(); event.stopImmediatePropagation(); } }); -- cgit v1.2.3