Skip to main content

Bug Tracker

Side navigation

#13590 closed bug (duplicate)

Opened March 10, 2013 11:45PM UTC

Closed March 10, 2013 11:53PM UTC

Last modified March 11, 2013 12:01AM UTC

.trigger() does not pass extraParameters to checkbox's click handler

Reported by: ultcombo Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:

.trigger()'s second parameter allows us to pass extra parameters to the event handler.

There's a bug in jQuery 1.8.x-git where the second parameter is not passed to a checkbox's click handler.

Test case - it works consistently when downgrading to jQuery 1.7.2

Also the bug does not appear when triggering a click on a non-checkbox input, nor when triggering another checkbox's event such as change. This issue seems to be intrinsically related with triggering a click event on a checkbox input.

I know this is a rare corner-case but can be tagged as back-compat. Original finder of this bug is SO's user2154919 (link).

Attachments (0)
Change History (2)

Changed March 10, 2013 11:53PM UTC by dmethvin comment:1

resolution: → duplicate
status: newclosed

Duplicate of #13428.

Changed March 11, 2013 12:01AM UTC by ultcombo comment:2

Oh that was quick, thanks for finding the duplicate so fast @dmethvin. =] Thing is, the other ticket claims to work in 1.8.3 while this one does not. Well I believe the source of the problem is the same then.