jQuery UI - draggable / droppable dataTransfer is undefined

前端 未结 2 1260
囚心锁ツ
囚心锁ツ 2020-12-30 02:52

This is driving me mad.

Please forgive me but I\'m not going to post the full code as it is (I believe) irrelevant. The reason behind this is obviously with my code.

2条回答
  •  -上瘾入骨i
    2020-12-30 03:11

    To solve this problem you must add this line:

    e.dataTransfer = e.originalEvent.dataTransfer;
    

    before the error line. This should fix it.

提交回复
热议问题