Bug Tracker

Modify

Ticket #5970 (closed bug: fixed)

Opened 4 years ago

Last modified 2 years ago

Change event isn't fired in IE on a text box when starting from a empty field.

Reported by: tinyfly Owned by: brandon
Priority: major Milestone: 1.4.2
Component: event Version: 1.4.1
Keywords: change ie Cc:
Blocking: Blocked by:

Description

If you have an text input field with the .change() method attached. That change event isn't fired in IE if it was previously an empty text field. Once it has a value and then you change that value then it fires.

This appeared in the 1.4.1 version; 1.4.0 worked as expected.

Steps to recreate (with attached test case):

  1. Load page and make sure input field is empty
  2. Enter text in input
  3. Blur off input (notice nothing happens)
  4. Change text entered in step 1
  5. Blur off input (notice how event fires)

Attachments

ie_change_event.html Download (485 bytes) - added by tinyfly 4 years ago.
ie_change_event_with_focus.html Download (493 bytes) - added by tinyfly 4 years ago.

Change History

Changed 4 years ago by tinyfly

comment:1 Changed 4 years ago by dmethvin

  • Keywords change ie added
  • need changed from Review to Patch
  • Priority changed from critical to major
  • Milestone changed from 1.4.1 to 1.4.2

Thanks for narrowing it down! It seems like this commit would be the culprit:

 http://github.com/jquery/jquery/commit/435772e29b4ac4ccfdefbc4045d43f714e153381

comment:2 Changed 4 years ago by dmethvin

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

Seems like John has fixed this in 1.4.2:

 http://github.com/jquery/jquery/commit/942f8f7f75a55a36e6b9745030d3b3c983518aa8

Give it a try when it comes out and reopen the ticket if not.

comment:3 Changed 4 years ago by tinyfly

  • Status changed from closed to reopened
  • Resolution fixed deleted

As of the Mon Feb 8 23:28:15 2010 -0500 nightly build it isn't fixed.

comment:4 Changed 4 years ago by john

  • Status changed from reopened to closed
  • Resolution set to fixed

@tinyfly: I copied your exact test page and I can verify that it's working in the latest trunk.

comment:5 Changed 4 years ago by tinyfly

  • Status changed from closed to reopened
  • Resolution fixed deleted

I see why I thought it wasn't fixed. If you first focus the field using .focus() when the page loads then perform the steps it still exhibits the same buggy behavior. See new attachment.

Changed 4 years ago by tinyfly

comment:6 Changed 4 years ago by addyosmani

  • Status changed from reopened to closed
  • Resolution set to fixed

Verified as working in jQuery 1.4.2. Closing ticket for now. Please feel free to re-submit or re-open your ticket if this issue persists.

comment:7 Changed 3 years ago by anonymous

I am seeing this bug in IE8 using 1.4.3

comment:8 Changed 3 years ago by danheberden

Tested against IE 6-8 with latest jquery build an bug is no longer present. WHOOHOO!!!

Version 0, edited 3 years ago by danheberden (next)

comment:9 Changed 3 years ago by anonymous

change event not fired in Ie 9 for input type text jquery version 1.4.4

comment:10 Changed 2 years ago by wilcoxn@…

change event issue still present in IE8 with build 1.7.1

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.