mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-10-05 01:44:18 +00:00
Button: fixed #5324 - button disabled state doesn't get refreshed when disabled set on original element
This commit is contained in:
parent
e3096c7abb
commit
1489d7380d
4
ui/jquery.ui.button.js
vendored
4
ui/jquery.ui.button.js
vendored
@ -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" ) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user