[英]jQuery sortable bug when dragging more than one element
There's a bug I can't get rid of using sortable() on multiple lists. 我无法摆脱在多个列表上使用sortable()的错误。 I'm able to drag more than one item by adding the following to the start function: 通过将以下内容添加到启动功能中,我可以拖动多个项目:
e.item.siblings(".selected").appendTo(e.item);
But now when you're not over top of a drop zone the placeholder comes with the items I drag. 但是现在,当您不在放置区的顶部时,占位符将随我拖动的项目一起提供。 I can visually see the placeholder inside the dragged elements. 我可以在视觉上看到拖动元素内的占位符。 And if I drop it at this point, they disappear. 如果我在这一点上放下它们,它们就会消失。 I tried to fix it using: 我尝试使用以下方法修复它:
e.item.siblings(".selected").not('.placeholder').appendTo(e.item);
In this fiddle the issue is very apparent. 在这个小提琴中,问题很明显。
http://jsfiddle.net/mstefanko/kxBUG/ http://jsfiddle.net/mstefanko/kxBUG/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.