akiran / akiran/react-slick

Need callback for keyboard navigation.

Offen
#2,317 0 Kommentare 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

### Feature

#### Need callback for keyboard navigation.

I was using external index buttons to switch between each `slick-items` using `slickGoTo()` on hover of the buttons. Corresponding button get's highlighted. But on keyboard navigation I never used to get any kind of `onKeyboardNav(index)` notification. I tried using `afterChange()` but it will include all changes. Also `afterChange()` will be triggered only after the animation. So smooth animation of the button highlight is not possible.

https://codesandbox.io/p/sandbox/react-slick-playground-forked-5f49h3

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

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