Skip to content

Commit

Permalink
Button: adding event.preventDefault. Fixes #5945 - Disabled buttons s…
Browse files Browse the repository at this point in the history
…till allow clicks

(cherry picked from commit 597a313)
  • Loading branch information
shellscape authored and scottgonzalez committed May 26, 2011
1 parent ad947c7 commit 3735bab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/jquery.ui.button.js
Expand Up @@ -96,6 +96,7 @@ $.widget( "ui.button", {
})
.bind( "click.button", function( event ) {
if ( options.disabled ) {
event.preventDefault();
event.stopImmediatePropagation();
}
});
Expand Down

0 comments on commit 3735bab

Please sign in to comment.