You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
number of slide is only 1, (as dynamic import, it sometimes only 1)
error occured at below code.
slideToScrollNotGreaterThanTotalSlides() { if (this.carouselSlides && this.slideToScroll > this.carouselSlides.length) throw new Error("slideToScroll value is greater than the total amount of slide. This can cause invisible cards in infinite mode. Please lower the slideToScroll value.") }
The text was updated successfully, but these errors were encountered:
I think that the problem lies in the part of your sentence "dynamic import".
I would like to understand what you clearly mean with "dynamic import". So you dynamically add / remove slides at runtime ?
The issue is quite weird because on the demo site I have also a slideToShow set to 1 without issues.
What's the value of slideToScroll in your configuration ? If you try to scroll more items than the number of items you have (only 1 in your case), this is normal that this error is triggered. So, if your value of slideToScroll is greater than one, the error is normal.
number of slide is only 1, (as dynamic import, it sometimes only 1)
error occured at below code.
slideToScrollNotGreaterThanTotalSlides() { if (this.carouselSlides && this.slideToScroll > this.carouselSlides.length) throw new Error("slideToScroll value is greater than the total amount of slide. This can cause invisible cards in infinite mode. Please lower the slideToScroll value.") }
The text was updated successfully, but these errors were encountered: