KarimMokhtar / react-drag-drop-files

Light and simple Reactjs drag and drop files library to use with very flexible options to change, so you put whatever the design you want for your drop-area. Users can drag and drop or even select the file anywhere in the window.
MIT License
248 stars 91 forks source link

Function(onDrop) appears(hover) when trying to drop a file #58

Closed franktronics closed 2 years ago

franktronics commented 2 years ago

Function(onDrop) appears(hover) when trying to drop a file

Summary

Added a function that is called on the hover to allow the user to better control the "hover"

Key Changes

Check List

KarimMokhtar commented 2 years ago

Hi @franktronics first of all, Thank you so much for your contribution. Actually, you can get the same functionality from onDraggingStateChange as we passing dragging state to it already. So if dragging is true so that's equivalent to the function you have added.