jQuery UI - draggable / droppable dataTransfer is undefined

前端 未结 2 1250
囚心锁ツ
囚心锁ツ 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条回答
  • 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.

    0 讨论(0)
  • 2020-12-30 03:16
    $.event.props.push('dataTransfer');
    
    0 讨论(0)
提交回复
热议问题