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:
Richard Worth 2010-03-11 02:13:28 +00:00
parent cef16fdf78
commit 8cd7129f0c

View File

@ -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 );