From 8cd7129f0c9a1b2332aaec6ca770ead19c845531 Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Thu, 11 Mar 2010 02:13:28 +0000 Subject: button: remove ui-helper-hidden-accessible instead of .show() on destroy. Fixes #5261 - button change events don't fire in IE 7/8 --- ui/jquery.ui.button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js index 9c26ba529..f387932c3 100644 --- a/ui/jquery.ui.button.js +++ b/ui/jquery.ui.button.js @@ -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 ); -- cgit v1.2.3