Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Carousel component stops working when navigating back to page in Astro with View Transitions #864

Open
JoyBoy-369 opened this issue Apr 22, 2024 · 0 comments

Comments

@JoyBoy-369
Copy link

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:

  1. Use the carousel component in any page
  2. Navigate to another page and back
  3. 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

Screenshots
First page load
Screenshot 2024-04-22 at 8 06 39 PM

Navigating to another page and back
Screenshot 2024-04-22 at 8 06 57 PM

Desktop (please complete the following information):

  • OS: Mac
  • Browser : Arc
  • Version : Chromium Engine Version 124.0.6367.61

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant