From cef16fdf78eab604ebe58526e58f962c60ab9bdb Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Thu, 11 Mar 2010 02:09:45 +0000 Subject: Checkbox must not be all the way hidden for change to fire in IE. Switched out .hide() for ui-helper-hidden-accessible class instead. 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/jquery.ui.button.js') diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js index fd01cf750..9c26ba529 100644 --- a/ui/jquery.ui.button.js +++ b/ui/jquery.ui.button.js @@ -159,7 +159,7 @@ $.widget( "ui.button", { if ( this.type === "checkbox" || this.type === "radio" ) { this.buttonElement = $( "[for=" + this.element.attr("id") + "]" ); - this.element.hide(); + this.element.addClass('ui-helper-hidden-accessible'); var checked = this.element.is( ":checked" ); if ( checked ) { -- cgit v1.2.3