Dragula: How to always move an item to end of list
问题 I am creating a drag and drop page using Dragula. It works very well. But in my case, I need move the item to the end of the list. Always. This is my Javascript Code dragula([ document.getElementById('left'), document.getElementById('right') ]) .on('drag', function (el) { // add 'is-moving' class to element being dragged el.classList.add('is-moving'); console.log(el.classList); }) .on('dragend', function (el) { // remove 'is-moving' class from element after dragging has stopped el.classList