react-dnd / react-dnd-html5-backend

HTML5 backend for React DnD [Legacy Repo]
MIT License
146 stars 97 forks source link

Prevent issue in Firefox when dropping an image #31

Open smvilar opened 8 years ago

smvilar commented 8 years ago

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

nicoecheza commented 8 years ago

+1

carmon commented 8 years ago

+1