feross/drag-drop

If non-file (link, text, etc) is dropped, causes error

Closed this issue · 4 comments

Specifically, TypeError: Cannot read property 'isFile' of null, from here. Possible fix could be to just check for entry.

@0x00A I tried to fix this exact issue already in 44a5230

  • Could you confirm that you're using the latest version of drag-drop (2.8.0)?
  • Could you share the browser / browser version are you using so I can try to reproduce?

Cheers!

Agh! so sorry, I was on an older version :( This works in 2.8.0 👍

No problem! 😄

I just ran into this same issue when attempting to drop empty files.