sarink / react-file-drop

React component for Gmail or Facebook -like drag and drop file uploader

Home Page:https://www.sarink.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't cancel a drag event

adamtal3 opened this issue · comments

I want the drop frame to only be visible if the user drags a file.

I tried adding return false to onDragOver and to onFrameDragEnter in case event.dragTransfer.types.indexOf('Files') === (-1) but the return value is ignored so there's no way to stop the drop zone from showing up.