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

Cannot cycle through slides when a "Click" EventHandler is active.

Open dharnen opened this issue 7 years ago • 2 comments

I'm experiencing an issue where if I have a "click" event handler on the same page as a carousel it won't allow me to move to a slide other than the initial one. If I try to swipe, use the side arrow buttons, or click on one of the thumbnails it quickly reverts back to the first slide. Anyone else experience this or have an idea how to work around this?

Thanks

dharnen avatar Aug 07 '19 19:08 dharnen

I am having the same issue when using the onChange prop. This props takes a function and passes a parameter which is the index. When logging this index, I can see the index goes from 1 to 2 but immediately back to 0. I can navigate past the second/1 element by clicking the thumbnails, but then clicking the next arrow returns it back to 0. Edit: this was fixed when I added the selectedItem prop to the carousel.

caseyjkey avatar Jan 17 '20 03:01 caseyjkey

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 02 '21 06:07 stale[bot]