Skip to main content

Bug Tracker

Side navigation

#13194 closed bug (duplicate)

Opened January 11, 2013 04:05PM UTC

Closed January 11, 2013 06:03PM UTC

click() event has different behavior than natural click

Reported by: anonymous Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.2
Keywords: Cc:
Blocked by: Blocking:
Description

When a real "click" happens on an element, the "click" handler for the element will see the updated value of the "checked" flag. That is, if you click on an unchecked checkbox, the click handler will see the "checked" flag set to true. However, if you trigger "click" on an unchecked checkbox via jQuery, the "click" handler will see the "checked" flag set to false! That's a really bad thing, in my opinion

also see: http://stackoverflow.com/questions/10268222/jquery-checking-a-checkbox-and-triggering-javascript-onclick-event

Attachments (0)
Change History (1)

Changed January 11, 2013 06:03PM UTC by dmethvin comment:1

resolution: → duplicate
status: newclosed

Duplicate of #3827.There's no test case to confirm, but I'll assume this is a dup of #3827 that has already been fixed.