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

前端 未结 5 1075
被撕碎了的回忆
被撕碎了的回忆 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条回答
    •  余生分开走
      2021-01-21 15:57

      you should try that :

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

    提交回复
    热议问题