react-grid-carousel icon indicating copy to clipboard operation
react-grid-carousel copied to clipboard

Carousel gets back to first page if clicked on image

Open Rop89 opened this issue 2 years ago • 1 comments

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?

Rop89 avatar Apr 12 '22 17:04 Rop89

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?

EKivutha avatar Jul 19 '22 19:07 EKivutha