akiran / akiran/react-slick

Need callback for keyboard navigation.

Abierto
#2,317 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
11.9k
Forks
2.1k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.