Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#8866 closed bug (fixed)

IE8 input[type=file] delegated change event files only on blur

Reported by: glex.spb@… 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: http://jsfiddle.net/glebm/n4zYd/2/

Change History (5)

comment:1 Changed 12 years ago by Timmy Willison

Component: unfiledevent
Status: newopen

Confirmed test case

Last edited 12 years ago by Timmy Willison (previous) (diff)

comment:2 Changed 12 years ago by dmethvin

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.

comment:3 Changed 12 years ago by dmethvin

Milestone: 1.next1.7
Owner: set to dmethvin
Status: openassigned

comment:4 Changed 12 years ago by dmethvin

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


comment:5 Changed 12 years ago by dmethvin

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.