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
Using replaceState in > 9.2.4 only updates the URL to #
Expected Behavior
It should update the url as expected
Actual Behavior
In 9.2.4 the following MR was merged: 3eb0ae2 . It adds support for using HashNavigation with Virtual, but accidentally breaks the regular usage. The problem comes from the fact that data-swiper-slide-index is used to find the active slide element, but it does not exist when virtual is not used. If virtual is not used it should just get the element using swiper.slides[swiper.activeIndex].
Check that this is really a bug
Reproduction link
sorrry
Bug description
Using
replaceState
in > 9.2.4 only updates the URL to#
Expected Behavior
It should update the url as expected
Actual Behavior
In 9.2.4 the following MR was merged: 3eb0ae2 . It adds support for using HashNavigation with Virtual, but accidentally breaks the regular usage. The problem comes from the fact that
data-swiper-slide-index
is used to find the active slide element, but it does not exist when virtual is not used. If virtual is not used it should just get the element usingswiper.slides[swiper.activeIndex]
.Swiper version
9.2.4+
Platform/Target and Browser Versions
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: