Skip to content
Permalink
Browse files

Merge pull request #207 from eikes/bug-5945

Button: stop disabled button from firing click events. fixes #5945.
  • Loading branch information
scottgonzalez committed May 5, 2011
2 parents 993d37a + a7f1659 commit af5b5b19483a0a18abe1fbb43cb534a5485f0804
Showing with 5 additions and 0 deletions.
  1. +5 −0 ui/jquery.ui.button.js
@@ -103,6 +103,11 @@ $.widget( "ui.button", {
})
.bind( "blur.button", function() {
$( this ).removeClass( focusClass );
})
.bind( "click.button", function( event ) {
if ( options.disabled ) {
event.stopImmediatePropagation();
}
});

if ( toggleButton ) {

0 comments on commit af5b5b1

Please sign in to comment.
You can’t perform that action at this time.