Bug Tracker

Opened 7 years ago

Closed 7 years ago

#12744 closed bug (notabug)

Blur,Focusout not getting fired in Chrome for input type file.

Reported by: rajendrav Owned by:
Priority: low Milestone: None
Component: event Version: 1.8.2
Keywords: Cc:
Blocked by: Blocking:

Description

http://jsfiddle.net/rajendrav5/LuEYv/7/

Blur event on input type file works fine in FF,IE but not getting fired in chrome/

Change History (1)

comment:1 Changed 7 years ago by elgreg

Component: unfiledevent
Priority: undecidedlow
Resolution: notabug
Status: newclosed

Google Chrome no longer displays the text input next to file upload fields. In FF, the blur and focusout events only fire when a user clicks inside of that field (not if they just click the browse button - the only option available in chrome). You would either need to use the change event (http://jsfiddle.net/elgreg/gQNmC/) or create a fake input element http://www.quirksmode.org/dom/inputfile.html

Note: See TracTickets for help on using tickets.