-
-
Notifications
You must be signed in to change notification settings - Fork 437
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Checks
- Not a duplicate.
- Not a question, feature request, or anything other than a bug report directly related to Splide. Use Discussions for these topics: https://github.com/Splidejs/splide/discussions
Version
v4.0.7
Description
In our configuration we want to show always 3 slides. The centered slide is the "selected" one.
The problem appears only when slider has 3 slides - slider is going directly from first to last slide after pressing the "next" button.
Splide configuration:
const splide = new Splide(".splide", {
trimSpace: false,
perPage: 3,
perMove: 1,
focus: "center"
}).mount();
Reproduction Link
https://codesandbox.io/s/elated-shadow-90s0jg
Steps to Reproduce
- Click the next (right arrow) button.
- The last element is selected.
Expected Behaviour
Expected is that after clicking next btn the slider will go to the second slide.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working