Skip to main content

Bug Tracker

Side navigation

#12744 closed bug (notabug)

Opened October 16, 2012 01:32PM UTC

Closed October 16, 2012 04:03PM UTC

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/

Attachments (0)
Change History (1)

Changed October 16, 2012 04:03PM UTC by elgreg comment:1

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