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
onDocumentDrop causes an error in IE #492
Comments
@Sergey901509 can you provide an example of the code you are using to duplicate this issue? also provide the version you are running as well? |
of cource: <Dropzone _onDrop(files) { |
I've already try your case in IE 11 and it seems like redirecting to the file itself, is that alright? https://react-dropzone.stackblitz.io/ seems like |
Hey, It turns out that Adding a simple check to the
Can someone with more knowledge of react-dropzone tell if this is a legit PR? Cheers |
@janusch this looks good to me. Please create a PR and try to add tests for this case please. |
Hey, thank you for the swift reply. |
I encountered this issue to when using it with react dnd. It seems the issue occurs when adding and removing a dropzone from the dom immediately after a user drops a file. |
@seberik that was as well my impression. Probably due to the use of refs. In that case I do not think this is a fault of react-dropzone, and should rather be fixed by keeping the component in the dom, where they are used. Please correct me if I am wrong ;) |
hello |
Fixes IE11 bug that calls onDocumentDrop while node is null closes react-dropzone#492
Protect against calling contains on null node ref closes react-dropzone#492
@pcgilday |
I think this issue is still present, I'm running v4.2.1 and testing in Sauce Labs with IE11 Win 10 causes the same result of firing 2 requests : "one with an empty file, the second with a normal file." |
@aliciacatalina the fix for this issue is in v4.2.3. Can you upgrade your version and try again? |
This issue is still present for me on v4.2.13 IE11 ( Windows 10 ) |
On first drop - all is Ok.
When I drop file second time without page refresh in Internet Explorer 11 - 2 requests are sent: one with an empty file, the second with a normal file.
The text was updated successfully, but these errors were encountered: