Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues on Firefox #49

Open
zhuolikevin opened this issue May 26, 2016 · 1 comment
Open

Issues on Firefox #49

zhuolikevin opened this issue May 26, 2016 · 1 comment

Comments

@zhuolikevin
Copy link

Hi Jordan, I just found it somehow doesn't work when using the plugin in Firefox.
After looked into it, it seems to be the trouble in these codes

The uploading process seems to be more time-consuming in FF than other browsers. So before the file is actually uploaded, the wrapper form has been torn down.

I modified it as following and it works

setTimeout(function() {
    element.siblings().remove();
    element.unwrap();
}, 4);

Maybe you can take a look at it. :)

@zhuolikevin
Copy link
Author

Setting a time delay as 4ms may still fail on some Firefox versions.
Anyone has better ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant