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
The itemsToShow option in vue3-carousel should be validated to ensure it falls within a reasonable range. Currently, it allows invalid values, which can break the carousel.
Expected Behavior
itemsToShow should satisfy: 1 <= itemsToShow <= slidesCount
If itemsToShow is less than 1, it should default to 1.
If it exceeds slidesCount, it should default to slidesCount.
Steps to Reproduce
Set itemsToShow to a value less than 1 or greater than slidesCount.
Observe the broken or unintended behavior.
Proposed Solution
Add validation logic to enforce 1 <= itemsToShow <= slidesCount.
Update documentation to reflect this rule.
Priority
Medium – Improves stability and prevents misuse.
The text was updated successfully, but these errors were encountered:
The
itemsToShow
option invue3-carousel
should be validated to ensure it falls within a reasonable range. Currently, it allows invalid values, which can break the carousel.Expected Behavior
itemsToShow
should satisfy: 1 <= itemsToShow <= slidesCountitemsToShow
is less than 1, it should default to 1.slidesCount
, it should default toslidesCount
.Steps to Reproduce
itemsToShow
to a value less than 1 or greater thanslidesCount
.Proposed Solution
1 <= itemsToShow <= slidesCount
.Priority
Medium – Improves stability and prevents misuse.
The text was updated successfully, but these errors were encountered: