mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
button: remove ui-helper-hidden-accessible instead of .show() on destroy. Fixes #5261 - button change events don't fire in IE 7/8
This commit is contained in:
parent
cef16fdf78
commit
8cd7129f0c
2
ui/jquery.ui.button.js
vendored
2
ui/jquery.ui.button.js
vendored
@ -187,7 +187,7 @@ $.widget( "ui.button", {
|
||||
}
|
||||
|
||||
if ( this.type === "checkbox" || this.type === "radio" ) {
|
||||
this.element.show();
|
||||
this.element.removeClass('ui-helper-hidden-accessible');
|
||||
}
|
||||
|
||||
$.Widget.prototype.destroy.call( this );
|
||||
|
Loading…
Reference in New Issue
Block a user