-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
OnChange not getting fired on radio button click #9336
Comments
@shivgarg5676 You can see this working in the docs site where it looks like your example originated, so the issue isn't with Material-UI. Please use gitter or SO for how-to questions and issues with your own code. |
this is the same code as given in docs and it is not working. So either docs has to be updated. or it might be a compatibility issue with higher react versions. |
It's working with React 16.1.1. The example you see running in the docs is running the code you see in the docs. |
@shivgarg5676 have you managed with the issue? I've noticed the same problem here... |
I have not been able to manage/resolve this issue. @mbrookes stated that it is working in 16.1.1 but it is not. Don't know what the issue is. I have tried version beta-21 and beta-23 both. For the workaround i am using onClick handler on parent div rather than onChange handler on radio component. |
I had the same issue. I ended up having to use an |
I had this issue as well. After debugging my code line by line, it turned out that my issue was not related to material-ui. I accidentally imported a global CSS file that affected all elements which I believed causing some conflicts with material-ui. After removing this CSS file, everything worked as expected. |
@MartinGao That was also the case for me, I didn't expect that CSS would affect the radio button functionality... Thanks for that! |
I am using following code in my component, but handleChange event is not getting fired as i try to select one of the radio buttons.
I have tried to update my react and react-dom version from 16.0.0 to 16.0.2.
Expected Behavior
handleChange function should execute when a user tries to click on one of the radio buttons.
Current Behavior
Nothing happens if a user tries to select a radio button and no input is shown to user
Context
Your Environment
The text was updated successfully, but these errors were encountered: