akiran / akiran/react-slick

Need callback for keyboard navigation.

Ouverte
#2,317 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
11.9k
Forks
2.1k
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

### 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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.