Carousel component stops working when navigating back to page in Astro with View Transitions
JoyBoy-369 opened this issue · comments
Describe the bug
I am using the carousel component in my Astro project with View transition and all works fine on the first page load. When I navigate to another page and back to this page, the carousel does not work. I see the messages fired by OnChange event , as I put it on cycle. However, on looking at the HTML the elements remain hidden and I see no change.
To Reproduce
Steps to reproduce the behavior:
- Use the carousel component in any page
- Navigate to another page and back
- The carousel component is not shown
Expected behavior
The carousel component should work the same as on the first page load as on subsequent page loads
Navigating to another page and back
Desktop (please complete the following information):
- OS: Mac
- Browser : Arc
- Version : Chromium Engine Version 124.0.6367.61
Additional context