akiran / akiran/react-slick

Pagination Dots Not Activating Correctly with decimal Values for slidesToShow and infinite: false.

Offen
#2,345 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
11.9k
Forks
2.1k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### Hello,

I've found an issue where the pagination dots do not behave as expected when a user sets an decimal number for `slidesToShow `(e.g., 1.5) and `infinite `is set to false.

In this scenario, the last pagination dot doesn't become active (the class "slick-active" isn't applied) when the last "page" of slides is visible. Pls use navigation buttons to slide.

For a demonstration of the problem, please view the CodeSandbox example I've put together:

https://codesandbox.io/s/react-slick-playground-forked-p5gmx6

I look forward to any suggestions for resolving this issue.

Thanks!

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.