diff options
-rw-r--r-- | ui/jquery.ui.button.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js index 854fdc8e3..2f26e3158 100644 --- a/ui/jquery.ui.button.js +++ b/ui/jquery.ui.button.js @@ -240,6 +240,10 @@ $.widget( "ui.button", { }, refresh: function() { + var isDisabled = this.element.is(":disabled"); + if ( isDisabled !== this.options.disabled ) { + this._setOption( "disabled", isDisabled ); + } if ( this.type === "radio" ) { radioGroup( this.element[0] ).each(function() { if ( $( this ).is( ":checked" ) ) { |