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

Reset clickable to true afterChange

Open HelKyle opened this issue 7 years ago • 1 comments

Reset clickable to true afterChange, Otherwise click event on slider will not be emited.

HelKyle avatar Jun 28 '18 14:06 HelKyle

Tested this locally but I had to move this.clickable = true to be set after the afterChange callback (between line 403 and 404) to get it to work.

Using the following settings:

{
	arrows: true,
	dots: true,
	infinite: true,
	initialSlide: 0,
	speed: 500,
	slidesToShow: 3,
	slidesToScroll: 1,
	responsive: [
		{
			breakpoint: 2400,
			settings: {
				slidesToShow: Math.min(4, slides.length),
				slidesToScroll: 1,
				arrows: true
			}
		},
		{
			breakpoint: 1600,
			settings: {
				slidesToShow: Math.min(3, slides.length),
				slidesToScroll: 1,
				arrows: true
			}
		},
		{
			breakpoint: 1024,
			settings: {
				slidesToShow: Math.min(2, slides.length),
				slidesToScroll: 1,
				arrows: true
			}
		},
		{
			breakpoint: 680,
			settings: {
				slidesToShow: 1,
				slidesToScroll: 1,
				arrows: false
			}
		}
	]
};

jdeagle avatar Sep 17 '18 20:09 jdeagle