autoplay is stopped after clicking the slick-dot
See original GitHub issueshort description of the bug / issue, provide more detail below. autoplay is sttoped when i click the slick-dot until i click the other area that is outside the zone that use slick.js i tried the official demo and it behaved the same how can i solve this?
====================================================================
[ paste your jsfiddle link here ]
use this jsfiddle to reproduce your bug: http://jsfiddle.net/simeydotme/fmo50w7n/ we will likely close your issue without it.
====================================================================
Steps to reproduce the problem
- …
- …
====================================================================
What is the expected behaviour?
… after clicking the autoplay is still working
====================================================================
What is observed behaviour?
…
====================================================================
More Details
- Which browsers/versions does it happen on?
- Which jQuery/Slick version are you using?
- Did this work before?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:10
Top GitHub Comments
Just as a additional note:
I also faced this issue, the problem was, as you click on a dot, the dot gets the focus, so setting PauseOnFocus to false solved the Problem, and autoplay continues… 😉
Hi
I’ve been having this issue for quite a while, and believe i just found a workaround 😃
$('#latest-news-wrapper').on('beforeChange', function(event, slick, currentSlide, nextSlide){
$('#latest-news-wrapper .slick-dots li').removeClass('slick-active').attr('aria-hidden','true');
$('#latest-news-wrapper .slick-dots li button').focus(function() {
this.blur();
});
});
This solved it for me.
Fixed fiddle: http://jsfiddle.net/zoq7o85k/
Thanks.