splide
splide copied to clipboard
Slide width and perPage slide problem
Checks
- [X] Not a duplicate.
- [X] 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
v3.0.0
Description
Hi, i love splide.js and I have been using an older version of splide.js and it is working perfectly, However today when i tried to update the js file, it no longer works as expected.
I have 4 slides to show per page but somehow in 3.xx.x+, it show one slide per page for 3 times.covering the full area, earlier slides used get inline width for each slide.
I have tried to debug but not able to solve it.
Any help would be really appreciated.
Reproduction Link
https://jsfiddle.net/rockingaryan/ds5n7cxh/
Steps to Reproduce
- Change the splide.min.js version to 3.0.0 or major to load the latest version of splide.js
Expected Behaviour
It should work normally showing 4 slides perPage and width should be added for each slide.
This is expected result, working with older version.

After 3.0.0

Related https://github.com/Splidejs/splide/issues/406 closed. Do i need continue using older version or perPage setting will be solved? The ticket was closed with no fixes before or any detail about the issue.
gap should be 0 (number) or '0px' (string).
https://jsfiddle.net/zscfp3or/