Swiper index results in last slide while using mutation observer

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.

Can this be tasked please, low-mid priority is fine. Experiencing the same with 3.3.2

Fix this please

Still facing issue 3.3.4

Fixed in Wappler 3.3.5

1 Like

Thank you

This topic was automatically closed after 24 hours. New replies are no longer allowed.