Bug Tracker

Modify

Ticket #1192 (closed bug: duplicate)

Opened 6 years ago

Last modified 6 years ago

Different order between user-triggered events and Jquery-triggered events

Reported by: julienw Owned by:
Priority: major Milestone: 1.1.3
Component: event Version: 1.1.2
Keywords: trigger Cc:
Blocking: Blocked by:

Description

Let's take an example: onclick on a checkbox; when a normal user triggers the event (ie: he checks the checkbox), the checkbox is first checked, then the handler is run.

But when one programmatically click the checkbox using jquery, the handler is run and _then_ the checkbox is checked.

Example code is there :  http://pastebin.ca/489630 and a live test is there :  http://beta.everlong.org/jquery/jquery_test.htm

Clicking on the button and clicking the checkbox should lead to the same messages, but that's not the case.

Change History

comment:1 Changed 6 years ago by brandon

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

I think you make a really good point but not all events fall into the given example. If a submit was to be triggered, then the handlers would never be run at all. Manual triggering of events is unfortunately not the same as if the user was creating the events.

I'm closing this bug out in favor of #873, which is to discuss how the event trigger system is to be reworked. Please feel free to continue this discussion on that ticket.

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.