Drop event not firing in chrome

后端 未结 4 1639
生来不讨喜
生来不讨喜 2020-12-02 18:02

It seems the drop event is not triggering when I would expect.

I assume that the drop event fires when an element that is being dragged is releases above the target

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-02 18:45

    You can get away with just doing an event.preventDefault() on the dragover event. Doing this will fire the drop event.

提交回复
热议问题