Bug Tracker

Opened 9 years ago

Closed 8 years ago

#8508 closed bug (wontfix)

Change event does not fire on IE8 for css hidden inputs

Reported by: dciccale@… Owned by:
Priority: high Milestone: 1.next
Component: event Version: 1.5.1
Keywords: Cc:
Blocked by: Blocking:

Description

What the summary says..

The change event for css hidden inputs fires on other browsers i've tested, FF 3.5+, Chrome 9+, Safari 5, Opera 11.

But not in IE8, i haven't tested older versions but i'm almost sure is going to be the same result.

Bug in action: http://jsbin.com/openi4/

Change History (3)

comment:1 Changed 9 years ago by Rick Waldron

Component: unfiledeffects
Priority: undecidedhigh
Status: newopen

Confirmed. Clicking the label area should trigger a change event on the checkbox input

comment:2 Changed 9 years ago by Rick Waldron

Keywords: needsreview added

comment:3 Changed 8 years ago by dmethvin

Component: effectsevent
Keywords: needsreview removed
Resolution: wontfix
Status: openclosed

IE just refuses to fire events on an invisible checkbox. A workaround would involve attaching a click event to the corresponding label and then guarding against a duplicate invocation if there was also a click event attached to the checkbox itself. Also there is the case of a label wrapped around the checkbox itself, where a click event on the visible checkbox would bubble up to the label.

Given all those special cases, this isn't practical to fix inside jQuery. It is easier to fix at the application level where you know which of the cases apply to the code and markup.

Note: See TracTickets for help on using tickets.