Stay within current tab when using pagy

Daryl Haines
I'm using the provided stimulus tab controller on a show page, and I'm rendering a paginated collection of related records in the second tab using pagy. How do I get pagy to stay within the same tab (i.e. target the same dom) when I select a different page using the pagy nav links? I can see that the tabs can be targeted  using data-tabs-index=, but how do I pass this using pagy?
Daryl Haines
Fixed it. I was using the example in the jumpstart documentation for tabs, I now realise I can use anchor tabs instead as per https://github.com/excid3/tailwindcss-stimulus-components
Notifications
You’re not receiving notifications from this thread.
© 2022 GoRails, LLC