Skip to main content

Bug Tracker

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: Owned by: dmethvin
Priority: low Milestone: 1.7
Component: event Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:

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:

Attachments (0)
Change History (5)

Changed April 13, 2011 09:57PM UTC by timmywil comment:1

_comment0: Confirmed1302731900169821
component: unfiledevent
status: newopen


test case

Changed September 08, 2011 08:05PM UTC by dmethvin comment:2

priority: undecidedlow

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 dmethvin comment:3

milestone: 1.next1.7
owner: → dmethvin
status: openassigned

Changed September 22, 2011 12:57AM UTC by dmethvin comment:4

This was fixed in 1.7 by attaching to the non-bubbling event:

Changed September 22, 2011 01:44AM UTC by dmethvin comment:5

resolution: → fixed
status: assignedclosed