Dynamic Swiper clickedIndex returns undefined

The following is the example

https://jsfiddle.net/enylin/1qcm8v50/66/

If I create only one slide, then clickedIndex will be undefined instead of 0.

How should I get the correct index?

Could be a Swiper bug, but if you use F7-Vue, you don’t need it at all, just use @click.native handler on swiper-slide:

<f7-swiper-slide @click.native="doSomething">...</f7-swiper-slide>

https://jsfiddle.net/enylin/1qcm8v50/68/

It’s not working.

https://jsfiddle.net/rnu9v725/

2 Likes