#10005 closed bug (duplicate)
Click event function does not fire at consistent times.
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | |
Component: | event | Version: | 1.6.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description (last modified by )
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 12 years ago by
comment:2 Changed 12 years ago by
Component: | unfiled → event |
---|---|
Milestone: | None → 1.6.3 |
Priority: | undecided → low |
Resolution: | → worksforme |
Status: | new → closed |
Callbacks attached to .change() works consistently.
comment:3 Changed 12 years ago by
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 12 years ago by
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 12 years ago by
This but was introduced in jquery-1.4.1. On jquery-1.4 click method works fine.
comment:6 Changed 12 years ago by
Milestone: | 1.6.3 |
---|
comment:7 Changed 12 years ago by
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
comment:8 Changed 12 years ago by
Resolution: | → duplicate |
---|---|
Status: | reopened → closed |
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.