diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js index 06d2ad6bb..9c2be5fb5 100644 --- a/ui/jquery.ui.button.js +++ b/ui/jquery.ui.button.js @@ -185,6 +185,7 @@ $.widget( "ui.button", { // $.Widget.prototype._setOptionDisabled so it's easy to proxy and can // be overridden by individual plugins this._setOption( "disabled", options.disabled ); + this._resetButton(); }, _determineButtonType: function() { @@ -250,6 +251,7 @@ $.widget( "ui.button", { } else { this.element.removeAttr( "disabled" ); } + return; } this._resetButton(); },