akiran / akiran/react-slick

Radio buttons doesn't work properly with react-slick

Ouverte
#1,464 1 commentaire 1 réaction 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

Radio buttons don't work properly if they are inside a react-slick. You need to click twice a radio button to them changes the checked value and appear like a checked button, and if you have more than one radio button group some weird stuff will happen. Like, every checked button will uncheck, but the state will remain the same.

**Solution**: You have to use de property `infinite: false`, at the config props of the slider, and after that, they will work properly.

Test: https://codesandbox.io/s/kx1o05nmv5

Thanks!

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.