aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2010-03-11 02:09:45 +0000
committerRichard Worth <rdworth@gmail.com>2010-03-11 02:09:45 +0000
commitcef16fdf78eab604ebe58526e58f962c60ab9bdb (patch)
tree153aa5e181125a671a25f77132e1c09881bca0f9 /ui
parentac138fcb25b22594c334ab1fec2012b1598c9d3d (diff)
downloadjquery-ui-cef16fdf78eab604ebe58526e58f962c60ab9bdb.tar.gz
jquery-ui-cef16fdf78eab604ebe58526e58f962c60ab9bdb.zip
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
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.button.js2
1 files changed, 1 insertions, 1 deletions
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 ) {