Bug Tracker

Modify

Ticket #5765 (closed bug: duplicate)

Opened 3 years ago

Last modified 3 years ago

programatic .click() of checkbox reports checkbox state inconsistenly to what is reported from a user click

Reported by: travi Owned by:
Priority: critical Milestone: 1.4
Component: unfiled Version: 1.4a2
Keywords: Cc:
Blocking: Blocked by:

Description

with a click handler attached to a checkbox, a user click and and programmatic .click() report opposite .is(':checked') results inside the click handler.

This causes QUnit tests to report failures with code that works when actual users interact with a page. It has also prevented me from using the same click handler for user clicks and programmatic .click()s in some instances.

I have run the attached QUnit test against 1.2.6, the lastest stable, and the nightly to verify this issue exists in all of those versions.

Attachments

index.html Download (1.2 KB) - added by travi 3 years ago.
QUnit test

Change History

Changed 3 years ago by travi

QUnit test

comment:1 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to duplicate

Duplicate of #3827.

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.