Permalink
Browse files

Button: adding event.preventDefault. Fixes #5945 - Disabled buttons s…

…till allow clicks
  • Loading branch information...
1 parent c49dbe0 commit 597a313ab67bc10627d9c17c941776514ea5bd7c @shellscape shellscape committed with scottgonzalez May 26, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 ui/jquery.ui.button.js
View
@@ -97,6 +97,7 @@ $.widget( "ui.button", {
})
.bind( "click.button", function( event ) {
if ( options.disabled ) {
+ event.preventDefault();
event.stopImmediatePropagation();
}
});

0 comments on commit 597a313

Please sign in to comment.