akiran / akiran/react-slick

Radio buttons doesn't work properly with react-slick

オープン
#1,464 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
11.9k
フォーク
2.1k
PR マージ指標
30日以内にマージされた PR はありません

説明

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!

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。