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 gets back to first page if clicked on image #17

Open
Rop89 opened this issue Apr 12, 2022 · 1 comment
Open

Carousel gets back to first page if clicked on image #17

Rop89 opened this issue Apr 12, 2022 · 1 comment

Comments

@Rop89
Copy link

Rop89 commented Apr 12, 2022

I have a React Grid Carousel with 3 images per page, they are 6 in total, which is 2 carousel pages.
If I click the image (it's prompting a modal), it gets back to the first carousel page.

How can I make sure that if the image in the modal is clicked it doesn't force a "reset" of the carousel pages?

@EKivutha
Copy link

carousel pages are rest once state and ref are reset, for example when you refresh the page, make sure that the state is maintained. What are you using for state management?

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

2 participants