mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-11 02:33:51 +00:00
fix available pairlists losing events after drag
This commit is contained in:
parent
2f07024f11
commit
0085c9ac2c
|
@ -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();
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user