Bug Tracker

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#10005 closed bug (duplicate)

Click event function does not fire at consistent times.

Reported by: [email protected] Owned by:
Priority: low Milestone:
Component: event Version: 1.6.2
Keywords: Cc:
Blocked by: Blocking:

Description (last modified by Rick Waldron)

If using .click() on a checkbox element, the returned value from .is('checked') from inside the elements .click() function will return the opposite of the actual state. If you click the checkbox, the .is('checked') will return the correct state.

[ Example fiddle]

This issue has been around for a while, [ this blog entry] is from 2009.

Callbacks attached to .change() works consistently.

Change History (9)

comment:1 Changed 10 years ago by anonymous

This bug is reproducible on Firefox 5.0 and Google Chrome 13.0.782.107 m on windows 7 64 bit with jQuery 1.3.2, 1.4.4, 1.5.2 and 1.6.2.

comment:2 Changed 10 years ago by Rick Waldron

Component: unfiledevent
Milestone: None1.6.3
Priority: undecidedlow
Resolution: worksforme
Status: newclosed

Callbacks attached to .change() works consistently.

comment:3 Changed 10 years ago by [email protected]

Was this report closed because another function works as intended, while this one doesn't?

If so, this problem should be mentioned on the documentation page for click (since comments are closed).

comment:4 Changed 10 years ago by Rick Waldron

Description: modified (diff)

You're missing the point - click is the wrong event to use with checkboxes. It's like reporting that mousedown doesn't work when you hit the spacebar on your keyboard

comment:5 Changed 10 years ago by anonymous

This but was introduced in jquery-1.4.1. On jquery-1.4 click method works fine.

comment:6 Changed 10 years ago by dmethvin

Milestone: 1.6.3

comment:7 Changed 10 years ago by dmethvin

Resolution: worksforme
Status: closedreopened

comment:8 Changed 10 years ago by dmethvin

Resolution: duplicate
Status: reopenedclosed

comment:9 Changed 10 years ago by dmethvin

Duplicate of #3827.

Note: See TracTickets for help on using tickets.