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)
Change History (16)
Changed January 21, 2010 11:30PM UTC by comment:1
Changed January 21, 2010 11:42PM UTC by comment:2
JSbin was giving me errors earlier, so here's an alternate link for the above test page:
Changed February 07, 2010 07:24PM UTC by comment:3
This looks to have been fixed in 1.4.1. Tested it here:
Changed February 13, 2010 08:42AM UTC by comment:4
milestone: | 1.4.1 → 1.4.2 |
---|---|
resolution: | → fixed |
status: | new → closed |
version: | 1.4 → 1.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 comment:5
resolution: | fixed |
---|---|
status: | closed → reopened |
This does not work with at least IE8
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 comment:6
Sorry wrong address up there, i meant:
Changed February 26, 2010 05:20PM UTC by comment:7
resolution: | → fixed |
---|---|
status: | reopened → closed |
As mentioned before, this was fixed in 1.4.2.
Changed March 18, 2010 02:23PM UTC by comment:8
resolution: | fixed |
---|---|
status: | closed → reopened |
In IE 8 in jquery 1.4.2 it is not working not solved.
Changed May 04, 2010 11:32AM UTC by 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 comment:10
resolution: | → worksforme |
---|---|
status: | reopened → closed |
Live test case Works in jQuery 1.4.2. Upgrade!
Changed November 18, 2010 05:37PM UTC by comment:11
Seems to be broken again in jQuery 1.4.4
Changed November 19, 2010 07:20AM UTC by comment:12
Nope, test case works in 1.4.4 too.
Changed March 15, 2011 07:25PM UTC by 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 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 comment:15
Still not working on 1.7.1....
Changed April 03, 2012 06:40PM UTC by 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
Here is a jsbin link with the above test page:
http://jsbin.com/ovipi