Closed phy25 closed 7 years ago
Merging. Thanks for your contribution.
I'm about to push a new release. I made a couple of small changes to your code, just fyi.
e.preventDefault
(line 1062, approx):if ( e && e.preventDefault ) {
e.preventDefault();
}
elem.click()
on invisible file elements): Line 49 (approx):
isIE7to9 = ( navigator.userAgent.indexOf('MSIE') !== -1 &&
navigator.userAgent.indexOf('MSIE 1') === -1 ),
Line 1076 (approx):
if ( !isIE7to9 ) {
self._input.click();
}
This allows the previous behavior to continue in IE7-9, otherwise an error will occur and uploads will not work until the page is reloaded.
Fine. I didn't consider IE issue yet, so that's good.
Test case: Use
Tab
to focus on select file button, and hitEnter
.This should be handled.