fix available pairlists losing events after drag

This commit is contained in:
Tako 2023-05-24 21:53:10 +00:00
parent 2f07024f11
commit 0085c9ac2c

View File

@ -100,7 +100,9 @@ useSortable(pairlistConfigsEl, config.value.pairlists, {
onAdd: (e) => { onAdd: (e) => {
const pairlist = availablePairlists.value[e.oldIndex]; const pairlist = availablePairlists.value[e.oldIndex];
addToConfig(pairlist, e.newIndex); addToConfig(pairlist, e.newIndex);
e.item.remove(); // quick fix from: https://github.com/SortableJS/Sortable/issues/1515
e.clone.replaceWith(e.item);
e.clone.remove();
}, },
}); });