Developer Console enables Interaction

looks like you need to do something in the swiper component’s show event

this works well

  def form_show(self, **event_args):
    """This method is called when the form is shown on the page"""
    self.swiper.update()

from swiper’s api docs on the update method:

Swiper API
You should call it after you add/remove slides manually, or after you hide/show it, or do any custom DOM modifications with Swiper

it’s quite usual for a javascript library to require elements to be on screen before initialisation.
so that’s what I was looking for when browsing their api docs

3 Likes