Not sure if this is the right place to ask my question, but I hope someone can help me.
I am using Sprig to re-render some cards based on some parameters (with a dropdown filter). These cards also use Swiper to create a nice slider. The problem is, when I filter and sprig re-renders the cards, the Swiper doesn't work anymore.
I tried to reinitialise the Swiper using htmx, but that doesn't seem to work.
<script>
htmx.on('htmx:afterSwap', function(event) {
awardSwiper.init()
});
</script>
Does someone have some knowledge about this topic?
Thanks in regards!