Bug Tracker

Opened 10 years ago

Closed 10 years ago

#13113 closed bug (patchwelcome)

change event for radio buttons not bubbling on simulated cicks in IE < 9

Reported by: [email protected] Owned by:
Priority: low Milestone: 1.9
Component: unfiled Version: 1.9b1
Keywords: Cc:
Blocked by: Blocking:


In jQuery 1.8.3, change events generated by simulating a click event on a radio button appear not to bubble as they do if the click is generated by user action.


Notice that if you run this sample in IE8 you will not execute the change event handler unless you click on one of the radio buttons. In IE 9 or most all other browsers you will execute the change event handler when the page loads.

Also of note, is that if the sample is modified so that the change event handler is attached directly to the radio button instead of being delegated by the body element, then the handler will execute on page load for all browsers... even IE8.

This suggest that the change event is not being bubbled when it is generated by a call to click() and is being bubbled when is is generated by the user clicking the radio button in IE8 and lower.

Change History (3)

comment:1 Changed 10 years ago by dmethvin

Status: newopen

Confirmed. The problem is that the IE propertychange event isn't being fired, which is the just-in-time trigger to attach the direct change event.

comment:2 Changed 10 years ago by dmethvin

Milestone: None1.9
Priority: undecidedlow

comment:3 Changed 10 years ago by dmethvin

Resolution: patchwelcome
Status: openclosed

I looked at solutions for this, but they're pretty complicated and large. A good workaround would be to monitor the click event rather than the change event on the checkbox. I'm marking this patchwelcome but would not want to use a lot of bytes fixing this.

Note: See TracTickets for help on using tickets.