Bug Tracker

Modify

Ticket #8508 (closed bug: wontfix)

Opened 2 years ago

Last modified 19 months ago

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:
Blocking: Blocked by:

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

comment:1 Changed 2 years ago by rwaldron

  • Priority changed from undecided to high
  • Status changed from new to open
  • Component changed from unfiled to effects

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

comment:2 Changed 2 years ago by rwaldron

  • Keywords needsreview added

comment:3 Changed 19 months ago by dmethvin

  • Keywords needsreview removed
  • Resolution set to wontfix
  • Status changed from open to closed
  • Component changed from effects to event

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.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.