Dots keep appearing even if it's one slide Version 1.7.1
See original GitHub issueshort description of the bug / issue, provide more detail below. Dots keep appearing even if it’s one slide "this problem if not mistaken appears only on 1.7.1 version I had to downgrade to 1.6.0 to get rid of the dots. thanks and all the best to slick team nice job!! " ====================================================================
[ paste your jsfiddle link here ]
This is my jsfiddle-link: http://jsfiddle.net/fmo50w7n/1350/
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
- Add a single slide to the slider
- set
dots: true
- Run the script 😉
====================================================================
What is the expected behaviour?
For single-slide sliders the dot-navigation should be hidden
====================================================================
What is observed behaviour?
Dot-navigation are added, even if there is only one slide in the slider.
====================================================================
More Details
- Which browsers/versions does it happen on? *
- Which jQuery/Slick version are you using? 1.7.1
- Did this work before? When downgrading to 1.6 it works as expected.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:20
Top GitHub Comments
Use “:only-child” selector
With above solution you don’t display the first dot when there are multiple slides. If you want a solution with .scss use following: