Events not triggering #7103
-
Hi Everyone, I am trying to make Swiper work with LightGallery, from their example i need to set the lightGallery after the init. But for some reason it doesn't seem to work. Now ive been trying to debug this, but i am just not getting any events to work with Swiper it seems. Down below you can see my code, and both console.log's in the on event is not being logged on the page. I'm not sure now what i'm doing wrong. really hope someone here can help me with this.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
To attach event listeners as props you have to update the syntax slightly for React components:
As per docs here: https://swiperjs.com/react#swiper-props |
Beta Was this translation helpful? Give feedback.
@MikeDrenth
To attach event listeners as props you have to update the syntax slightly for React components:
As per docs here: https://swiperjs.com/react#swiper-props