未验证 提交 23a32796 编写于 作者: F Flame2057 提交者: GitHub

toggle chosen class after events dispatched

上级 94df83c3
......@@ -435,14 +435,14 @@
// Make the element draggable
dragEl.draggable = _this.nativeDraggable;
// Bind the events: dragstart/dragend
_this._triggerDragStart(evt, touch);
// Drag start event
_dispatchEvent(_this, rootEl, 'choose', dragEl, rootEl, rootEl, oldIndex);
// Chosen item
_toggleClass(dragEl, options.chosenClass, true);
// Bind the events: dragstart/dragend
_this._triggerDragStart(evt, touch);
};
// Disable "draggable"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册