HTML5 drop event doesn't work unless dragover is handled

后端 未结 4 1085
一生所求
一生所求 2020-12-02 16:51

I am listening to the drop event and doing e.preventDefault() But its trying to open the dropped file. It was working fine till yesterday. But just

4条回答
  •  生来不讨喜
    2020-12-02 17:52

    Works fine for me. Are you loading this as an HTTP or a FILE URL? I believe it needs to be an HTTP URL with Chrome.

提交回复
热议问题