How do I avoid a click event firing after dragging a gridster.js widget with clickable content?

前端 未结 5 1076
被撕碎了的回忆
被撕碎了的回忆 2021-01-21 15:32

I\'m using Gridster (http://gridster.net/) which able to drag the content inside the li . In my li there is a clickable div.

  • 5条回答
    •  旧时难觅i
      2021-01-21 16:17

      There now is a native support to disable the drag and drop operation on Gridster.

      $(".gridster ul").gridster().data('gridster').disable();

    提交回复
    热议问题