mother / react-files

A file input (dropzone) management component for React
MIT License
145 stars 35 forks source link

Dragging detection breaks if content is not text #51

Open danplaseg opened 5 months ago

danplaseg commented 5 months ago

Hello, I detected this situation when I added a simple icon component to the "drop here" default text inside the <Files></Files> tag. When hovering while dragging a file over anything that's not text (i.e. the icon in this case), the active class will be removed and will never come back unless the drag zone is left and then coming back inside.