Skip to main content

Bug Tracker

Side navigation

#5892 closed bug (worksforme)

Opened January 21, 2010 11:19PM UTC

Closed October 02, 2010 06:32PM UTC

Last modified April 03, 2012 06:40PM UTC

IE change event does not fire on text input after setting value - works in jQuery 1.3.2, fails in 1.4.0

Reported by: Guiswa Owned by: brandon
Priority: minor Milestone: 1.4.2
Component: event Version: 1.4.1
Keywords: change event IE Cc:
Blocked by: Blocking:
Description

Steps to reproduce using the attached test page:

1.Type "abc" in the first text input element.

2.Hit tab or click elsewhere on the page to trigger the change event - you should see an alert.

3.Click the button to set the value of the first text element to "".

4.Type "abc" in the first text input element again.

5.Hit tab or click elsewhere on the page to trigger the change event again.

Expected:

The alert appears for a second time.

Actual:

The alert does not appear.

Notes:

This only occurs in Internet Explorer 6-8 using jQuery 1.4.0. Previous versions of jQuery do not exhibit this behavior.

Attachments (1)
  • test.html (1.4 KB) - added by Guiswa January 21, 2010 11:19PM UTC.
Change History (16)

Changed January 21, 2010 11:30PM UTC by Guiswa comment:1

Here is a jsbin link with the above test page:

http://jsbin.com/ovipi

Changed January 21, 2010 11:42PM UTC by Guiswa comment:2

JSbin was giving me errors earlier, so here's an alternate link for the above test page:

http://dl.dropbox.com/u/11686/test.html

Changed February 07, 2010 07:24PM UTC by reybango comment:3

This looks to have been fixed in 1.4.1. Tested it here:

http://jsbin.com/ovipi/2

Changed February 13, 2010 08:42AM UTC by john comment:4

milestone: 1.4.11.4.2
resolution: → fixed
status: newclosed
version: 1.41.4.1

I can't verify the 1.4.1 claim but it does appear to be fixed in the nightlies.

Changed February 24, 2010 12:14PM UTC by jasmo comment:5

resolution: fixed
status: closedreopened

This does not work with at least IE8

http://jsbin.com/ovipi/2

In my current project i have input field with change event binded, and it won't trigger it if i click mouse anywhere in document, but only when i press tab.

When it has fired once, it then works by clicking anywhere in a document as it should.

Changed February 24, 2010 12:27PM UTC by jasmo comment:6

Sorry wrong address up there, i meant:

http://jsbin.com/ovipi/3/

Changed February 26, 2010 05:20PM UTC by john comment:7

resolution: → fixed
status: reopenedclosed

As mentioned before, this was fixed in 1.4.2.

Changed March 18, 2010 02:23PM UTC by serdartu comment:8

resolution: fixed
status: closedreopened

In IE 8 in jquery 1.4.2 it is not working not solved.

Changed May 04, 2010 11:32AM UTC by petertoi comment:9

What is the status on this bug? Is there any known workaround to make it work, and have the change event fired after leaving the input box. For the record I can at - that changing the value will make it fire. e.g

Page loaded: TextInput Value = [Empty]

Editing field: Text Value = ABC - leaving the textbox * no event fired

Editing the field again: Text Value = ABCD - leaving the textbox * event firked!

Changed October 02, 2010 06:32PM UTC by snover comment:10

resolution: → worksforme
status: reopenedclosed

Live test case Works in jQuery 1.4.2. Upgrade!

Changed November 18, 2010 05:37PM UTC by kemosite comment:11

Seems to be broken again in jQuery 1.4.4

Changed November 19, 2010 07:20AM UTC by snover comment:12

Nope, test case works in 1.4.4 too.

Changed March 15, 2011 07:25PM UTC by kadlecmark@hotmail.com comment:13

Broken again I believe, the click or change events are not firing in IE8 on the second file input selection.

Using jquery-1.5.1.min.js

Changed December 22, 2011 07:09PM UTC by anonymous comment:14

Replying to [comment:13 kadlecmark@…]:

Broken again I believe, the click or change events are not firing in IE8 on the second file input selection. Using jquery-1.5.1.min.js

Yes it fails again using jquery-1.5.1.min.js and IE8 and IE9

Changed March 12, 2012 07:54PM UTC by anonymous comment:15

Still not working on 1.7.1....

Changed April 03, 2012 06:40PM UTC by wilcoxn@gmail.com comment:16

fails for me in 1.7.1 too in IE8. change event does not fire when called from a textbox - Firefox is fine