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

Dynamic slide with only one slide renders 3 copies of slide

Open tathens opened this issue 1 year ago • 4 comments

https://codesandbox.io/p/sandbox/zflc6l

With version 0.30.2 --- When creating a dynamic slide, if the array of slides has only 1 item, the item is repeated 3 times on a single slide.

Screen Shot 2024-11-14 at 9 15 48 AM

tathens avatar Nov 14 '24 14:11 tathens

I might have jumped the gun on this. I found that setting infinite to false corrected this problem. I now have a test in my code to set infinite: slides.length > 1

tathens avatar Nov 14 '24 15:11 tathens

@tathens thank you!! it did not do this before. i had to restore a deleted page which used react slick and i was experiencing the same thing

yubinjodev avatar Dec 02 '24 02:12 yubinjodev

met with this issue too

yuefei-sph avatar Dec 05 '24 05:12 yuefei-sph

https://www.npmjs.com/package/@ant-design/react-slick seems fixed this

yuefei-sph avatar Dec 05 '24 07:12 yuefei-sph

This is fixed now

akiran avatar Aug 12 '25 15:08 akiran