Wappler Version : 3.3.1
Operating System : osx10.15
Expected behavior
The current index should result in the first slide not last slide.
Actual behavior
swiper1.index results in last slide even though it’s not visible/active/on screen etc. After I swipe to the last slide(1) then swipe back to slide(0) it works normally.
How to reproduce
Add a container not visible on load then add a swiper with 2 slides
set some logic to display the parent container
add mutation observer option to the swiper
use some dynamic text to display the current swiper index.
preview the app
run the logic to display the parent
then you will see instead of declaring the first slide index (0) It will display (1).
swipe to second slide then swipe back to first
now the index is correct as slide 0.