This is a recent and pretty major regression on all platforms:
Maybe this is related to the active class tweak we recently landed.
I have noticed similar behavior with custom multiple selectmenus, at least on mobile Safari.
Could it be related?
remove checked state from radio button inputs that are not checked. u…
…se jquery attr accessor instead of expando to guarantee consistent values. Fixes #1532.
This error is related to JQuery 1.6 RC1.
Selection is now fixed but the "change" event doesn't get triggered on reselecting the previously selected element.
@mobilizer - does John Bender's fix resolve the issue for you? Just wondering if your comment is here to help us understand why the issue cropped up or that it didn't work for you. This is why we're trying to get RC builds on jQuery core in early to catch breaking changes like this.
"Just wondering if your comment is here to help us understand why the issue cropped up or that it didn't work for you. "
1.) By reverting to jQuery 1.5.x the issue disappears completely
2.) John's fix partly fixes the issue. Everything is looking good with it. You can reselect the radio buttons again. But the "change" event is not triggered on selecting a previously selected element.
Gotcha. Ok, I assigned John to look at this again. Thanks for your help.
Thanks for sticking with this issue and keeping us informed, I'll put in a fix tonight with tests.
I suppose this is what I get for claiming I would have a fix tonight, but the expando property checked is misbehaving in chrome for me, but seems to be working in firefox. Hopefully I'll have more information tomorrow.
For those who are interested or possibly better informed than I am as to why chrome might be behaving this way
There is something changed in JQuery 1.6 RC1... issue #8500 (RADIOS AND CHECKBOXES REVERT TO DEFAULT (HTML) STATE WHEN WRAPPED IN IE) http://bugs.jquery.com/ticket/8500
Meet the same issue with jQuery 1.6.
Moved back to jQuery 1.5.2
I was able to solve this with jQuery 1.6 by changing .attr to .prop in the checkboxradio plugin where the vclick function is bound to the label.
This issue is directly related to the changed behavior of jQuery .attr and .prop methods, which changed in jQuery 1.6 and 1.6.1. Basically .attr is for setting and querying the initial checked state of a radio button or checkbox, but .prop reflects the current checked state.
The issue is explained in detail here: http://blog.jquery.com/2011/05/12/jquery-1-6-1-released/
I just looked into this one a bit. It looks like we're using prop already, and I'm not seeing any noticeable issues with change events firing. is this fixed then?
Demo here: http://jsbin.com/ivoki4/3/edit
closing this as I can't find a problem now. Let us know! Thanks