Describe the bug
Whn infinite={true} the carouselState has incorrect state for:
To Reproduce
- Create a carousel with infinte={true}
- Access the carouselState somehow (e.g. customButtonGroup/beforeChange/afterChange etc)
- The totalItems/currentSlide are incorrectly set
Expected behavior
When the carousel holds 3 items the totalItems should be 3 while the currentSlide should hold the index of the currentSlide. This is not the case when infinte is set to true
Describe the bug
Whn infinite={true} the carouselState has incorrect state for:
To Reproduce
Expected behavior
When the carousel holds 3 items the totalItems should be 3 while the currentSlide should hold the index of the currentSlide. This is not the case when infinte is set to true