vueper-slides icon indicating copy to clipboard operation
vueper-slides copied to clipboard

Current page changes when array changes

Open schumama opened this issue 4 years ago • 1 comments

When updating the array in the vueper-slide v-for, sometimes it will flip to the last slide. Specifically my issue is when visibleSlides > 1 and I swap to an array that is not evenly divisible by the visibleSlides number (ex: total slide count = 7 and visibleSlides = 3).

I am using the component currently with placeholder "loading" slides that wait on an API call and then are replaced by the data once it is received, and having issues with jumping to pages that users are not expecting when we want to show the first page until they click or swipe.

Codepen example: https://codepen.io/schumama/pen/LYxXzXJ. Clicking "uneven" will make it go to the end, clicking "even" just replaces the slides on the current page.

Currently we are still on Vue 2, so if we can get a fix for that version it would be great!

schumama avatar Apr 21 '21 20:04 schumama

@antoniandre Are you still actively maintaining? Any thoughts on this issue?

schumama avatar Jun 08 '21 15:06 schumama