Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48978

Ion slide content scrolls to top when reorder finishes

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 48978

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>