Skip to content
This repository has been archived by the owner on Jun 18, 2018. It is now read-only.

Prevent issue in Firefox when dropping an image #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

smvilar
Copy link

@smvilar smvilar commented May 11, 2016

When dropping an image (from another tab) in Firefox, it sends 'Files' in the dataTransfer.types array but dataTransfer.files value is null.

This change should prevent a type from being recognized as such if there's no value returning from the getData function for that type.

Closes #29

When dropping an image (from another tab) in Firefox, it sends `'Files'` in the `dataTransfer.types` array but `dataTransfer.files` value is `null`.

This change should prevent a type from being recognized as such if there's no value returning from the `getData` function for that type.

Closes react-dnd#29
@nicoecheza
Copy link

nicoecheza commented Aug 24, 2016

+1

1 similar comment
@carmon
Copy link

carmon commented Aug 24, 2016

+1

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

Successfully merging this pull request may close these issues.

3 participants