提交 126cd94a 编写于 作者: R RubaXa

Merge branch 'dev' of github.com:RubaXa/Sortable into dev

......@@ -599,7 +599,7 @@
_disableDraggable(dragEl);
_toggleClass(dragEl, this.options.ghostClass, false);
if (!rootEl.contains(dragEl)) {
if (rootEl !== dragEl.parentNode) {
// drag from one list and drop into another
_dispatchEvent(dragEl.parentNode, 'sort', dragEl, rootEl, startIndex, newIndex);
_dispatchEvent(rootEl, 'sort', dragEl, rootEl, startIndex, newIndex);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册