Bug Tracker

Modify

Ticket #6066 (closed bug: duplicate)

Opened 3 years ago

Last modified 3 years ago

Bound change event not triggered until element loses focus a second time

Reported by: mweeda Owned by:
Priority: Milestone: 1.4.2
Component: event Version: 1.4.1
Keywords: onchange IE bind Cc:
Blocking: Blocked by:

Description

This behavior appears when upgrading from jQuery 1.3.2 to 1.4.1. It appears under IE 8.0.6001.18882 but not under Firefox 3.5.7.

A function bound with: jQuery("#"+fieldName).bind('change', {...}, jQuery("#"+fieldName).RSV.fieldValidate); is triggered only when an element is changed and loses focus for the second (or subsequent) time. That is, if the element gains focus for the first time, its value is changed, and then loses focus, the function isn't triggered. On the other hand if the element gains focus, loses focus, gains focus again, the value is changed, and then loses focus, the function is triggered.

Change History

comment:1 Changed 3 years ago by john

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

Duplicate of #5851 (already fixed).

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.