react-slick icon indicating copy to clipboard operation
react-slick copied to clipboard

Add support for onArrowClick

Open JorgeSivil opened this issue 2 years ago • 0 comments

I had to fire an event on arrow click and it wasn't possible, I was able to do what I needed only with beforeChange and it didn't work right because I had a re rendering issue in which upon scrolling vertically and coming up again, the carousel would be shifted to the right.

The workaround was to do a goTo(0) upon scrolling, and had to add a flag in the window scope to prevent the event from firing when doing a goTo(0). It would have been so much easier if I just had a onArrowClick() event.

Thanks a lot!

JorgeSivil avatar Sep 05 '22 15:09 JorgeSivil