Hi,
I have ion-slides and inside one of the ion-slide there is ion-content and inside that ion-reorder-group.
On ionItemReorder I splice the content:
let to = $event.detail.to;
if(to >= this.element.items.length) {
to = this.element.items.length - 1;
}
const itemMove = this.element.items.splice($event.detail.from, 1)[0];
this.element.items.splice(to, 0, itemMove);
When it finishes, the content scrolls to the top, which is inconvenient if I am reordering the bottom items.
How can I fix this issue? If I remove the splice, it works fine.
Thank you!
1 post - 1 participant