JQuery Dragging Outside Parent

前端 未结 5 2116
后悔当初
后悔当初 2020-12-20 11:31

I\'m using JQuery\'s draggable(); to make li elements draggable. The only problem is when the element is dragged outside its parent, it doesn\'t show up. That is, it doesn\'

5条回答
  •  余生分开走
    2020-12-20 12:18

    I had a similar issue and resolved it by setting the option:

    appendTo: 'body'
    

    The only side effect to this is if you have styles applied to the item based on it's parent container, those styles won't be present on the helper.

提交回复
热议问题