-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[RadioButton] Bug custom wrapper in RadioButtonGroup #4568
Comments
I ran into the same problem, I've created a RadioButton which is wrapped in a Paper component. However due to the rendering method used in the RadioButtonGroup, the component got replaced. I replaced the rendering method with the following, this way the wrapping still works. `render() {
the wrapped component looked like this
Note: wrapper has to be a class, a stateless function cannot be used because ref is used by the radiobuttongroup. |
We have been porting the component on the v1-beta branch. We reimplemented it from the ground-up. While we haven't tested it, I think that the issue is most likely fixed on that branch. Hence, I'm closing it. |
Cannot use a customized-wrapper-RadioButton inside RadioButtonGroup, because it gets replaced with standard RadioButton component during render.
RadioButtonGroup render should reuse the same RadioButton component instead.
The text was updated successfully, but these errors were encountered: