Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Radio buttons doesn't work properly with react-slick #1464

Open
oaugusto256 opened this issue Dec 12, 2018 · 1 comment
Open

Radio buttons doesn't work properly with react-slick #1464

oaugusto256 opened this issue Dec 12, 2018 · 1 comment

Comments

@oaugusto256
Copy link

oaugusto256 commented Dec 12, 2018

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!

@SuperWallaby
Copy link

@tavioalves Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants