Closed TroyWolf closed 2 years ago
@TroyWolf Thanks for mentioning that.
Hi @TroyWolf most likely I am gonna solve it on the weekend. Would you like to contribute and solve it with a PR?
I'll take a stab at it, yes. 👍🏼
@KarimMokhtar should I branch off main? You have dev
set as default branch.
Nope Please branch from div
i will merge to the main after testing and collecting PRs
Fix has been merged to dev
.
No problems in Chrome. When I DnD a file in Firefox, my React app blows up with:
Per https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/clearData
It looks like this code is doing
clearData()
in the drop handler: https://github.com/KarimMokhtar/react-drag-drop-files/blob/dev/src/useDragging.tsx#L56This Stack Overflow is related: https://stackoverflow.com/questions/58201273/nomodificationallowederror-in-firefox-when-using-dnd-events