jQuery unexpected sortable behaviour

前端 未结 1 1638
暗喜
暗喜 2020-12-15 14:12

I\'m working on a project where I can generate Word documents, one of the functionalities is to define a table of contents. I want my TOC to be a sortable jQuery list for so

相关标签:
1条回答
  • 2020-12-15 14:41

    Just add this

    $('ul.list').bind('mousedown', function(e) {
      e.stopPropagation();
    });
    

    This will stop IE from bubbling up the mousedown event to the parent ul, which causes the strange sortable behavior you have seen. Now it should work as expected

    0 讨论(0)
提交回复
热议问题