Side navigation
#8866 closed bug (fixed)
Opened April 13, 2011 08:37PM UTC
Closed September 22, 2011 01:44AM UTC
Last modified March 08, 2012 07:04PM UTC
IE8 input[type=file] delegated change event files only on blur
| Reported by: | glex.spb@gmail.com | Owned by: | dmethvin |
|---|---|---|---|
| Priority: | low | Milestone: | 1.7 |
| Component: | event | Version: | 1.5.2 |
| Keywords: | Cc: | ||
| Blocked by: | Blocking: |
Description
In IE8 change event on file inputs runs only when you focus out of the element if that event was delegated.
jQuery(function($) {
$("#file-container").delegate("input", "change", function(){
alert("Event fired!");
});
});
Test case: http://jsfiddle.net/glebm/n4zYd/2/
Attachments (0)
Change History (5)
Changed April 13, 2011 09:57PM UTC by comment:1
| _comment0: | Confirmed → 1302731900169821 |
|---|---|
| component: | unfiled → event |
| status: | new → open |
Changed September 08, 2011 08:05PM UTC by comment:2
| priority: | undecided → low |
|---|
Also visible in jquery/test/delegatetest.html but I am not sure how we can fix it. There doesn't seem to be a bubbling event we can catch to determine if the content has changed.
Changed September 22, 2011 12:56AM UTC by comment:3
| milestone: | 1.next → 1.7 |
|---|---|
| owner: | → dmethvin |
| status: | open → assigned |
Changed September 22, 2011 12:57AM UTC by comment:4
This was fixed in 1.7 by attaching to the non-bubbling event:
https://github.com/jquery/jquery/commit/3bd7bed340f9077d39734ffce366ef2caeb9ce35
Changed September 22, 2011 01:44AM UTC by comment:5
| resolution: | → fixed |
|---|---|
| status: | assigned → closed |
Confirmed
test case