short description of the bug / issue, provide more detail below.
The problem could be reproduced on the demo page http://kenwheeler.github.io/slick/ with any touch device.
E.g. on "single item"
====================================================================
[ paste your jsfiddle link here ]not needed - error on demo page reproducible: http://kenwheeler.github.io/slick/
====================================================================
====================================================================
only the 2nd dot should be marked after sliding to "2"
====================================================================
"2" is displayed but 2nd and 3rd dot are marked
====================================================================
+1
@dermoritz @qharryq Either of you find a solution for this issue?
@mattcdowning this issue is related with focus handling. Looks like focus is not removed on swipe. I manage to get a CSS fix for this issue:
.slick-dots li button:focus:before {
opacity: 0.25;
}
.slick-dots li.slick-active button:focus:before {
opacity: .75;
color: #000;
}
Not sure why they add style based on focus when the .slick-active should handle the styling for an active dot.
Seems like this issue is reproducible without a mobile device even. All you have to do is click on a dot and then another dot before the animation completes. When the animation completes both dots will be focused.
This can be done on the demo page.
Edit: The temporary solution by @efigarolam also fixes this.
The temporary solution by @efigarolam does not fix this issue for me. Are there any other known fixes? @dermoritz @qharryq @GitFlip
@bracketslash Sorry haven't looked into this anymore since @efigarolam's fix worked for us.
Most helpful comment
@mattcdowning this issue is related with focus handling. Looks like focus is not removed on swipe. I manage to get a CSS fix for this issue:
Not sure why they add style based on focus when the
.slick-activeshould handle the styling for an active dot.