Skip to content

Commit 8df834f

Browse files
committed
Button: no longer calls _resetButton() after changing the disabled option. Fixed #6242 - Button .enable() strange behavior on Webkit (Google Chrome, Safari)
1 parent c89bbc1 commit 8df834f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ui/jquery.ui.button.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ $.widget( "ui.button", {
185185
// $.Widget.prototype._setOptionDisabled so it's easy to proxy and can
186186
// be overridden by individual plugins
187187
this._setOption( "disabled", options.disabled );
188+
this._resetButton();
188189
},
189190

190191
_determineButtonType: function() {
@@ -250,6 +251,7 @@ $.widget( "ui.button", {
250251
} else {
251252
this.element.removeAttr( "disabled" );
252253
}
254+
return;
253255
}
254256
this._resetButton();
255257
},

0 commit comments

Comments
 (0)