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
If you try to drag beyond the second "group" (slides 3-4), the slider will return to the second group. Using the bullets to go to the third group will also produce weird behaviour, when trying to drag further.
Interestingly, the same behaviour is not happening when the value for slidesPerView is a string. So slidesPerView is a bit more robust already?
Suggested solution
Apply the same king of sanitising on slidesPerGroup as is applied on slidesPerView
Clear and concise description of the problem
If the value for
slidesPerGroup
for whatever reason is a string instead of an integer, the slider becomes somewhat unusable.See the following example: https://codesandbox.io/p/sandbox/swiper-pagination-forked-hv54q2?file=/index.html:78,27
If you try to drag beyond the second "group" (slides 3-4), the slider will return to the second group. Using the bullets to go to the third group will also produce weird behaviour, when trying to drag further.
Interestingly, the same behaviour is not happening when the value for
slidesPerView
is a string. SoslidesPerView
is a bit more robust already?Suggested solution
Apply the same king of sanitising on
slidesPerGroup
as is applied onslidesPerView
Alternative
No response
Additional context
No response
Validations
Would you like to open a PR for this feature?
The text was updated successfully, but these errors were encountered: