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

Drag state does not canceled in IE

PFight opened this issue · comments

IE has a bug: https://stackoverflow.com/questions/40680879/dragleave-is-not-firing-in-ie
See for example https://jsfiddle.net/1m0gbL4d/4/

Due to this bug library does not work correctly in IE. If you begin dragging file, and then move file away - drag state preserves, frameDragCounter still more the zero, and next drag does not begin.

I have made hotfix in local copy of library installation:
image

This fix not ideal - it only cover case, when you cancel drag, then move a mouse over page, then begin another drag. Do not know, how to fix whole case.

Is this still an issue today? Please reopen if so.

It's repro in oficial demo https://sarink.github.io/react-file-drop/
Here state after I started dragging file, then moved file away and canceled drag:
image

image