diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.button.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js index 3decc2331..b80fca4d9 100644 --- a/ui/jquery.ui.button.js +++ b/ui/jquery.ui.button.js @@ -284,7 +284,9 @@ $.widget( "ui.button", { }, refresh: function() { - var isDisabled = this.element.is( ":disabled" ) || this.element.hasClass( "ui-button-disabled" ); + //See #8237 & #8828 + var isDisabled = this.element.is( "input, button" ) ? this.element.is( ":disabled" ) : this.element.hasClass( "ui-button-disabled" ); + if ( isDisabled !== this.options.disabled ) { this._setOption( "disabled", isDisabled ); } |