-
Notifications
You must be signed in to change notification settings - Fork 75
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
Id required somewhere #38
Comments
It shouldn't be possible for a RadioGroup to be influenced by Radios of another RadioGroup since they are only coupled via there parent/child relationship. |
I'm also seeing this behavior. I have a component that is used in two different tabs. The radio group has a unique key for each usage. When I change one tabs value, the value for the clicked adio group does not have any value selected; everything in my app updates correctly. Then when I switch to the other tab that also has the component it's selected value is the one selected from the prior page.
and my calling component
and the second calling component
|
OK I solved the problem in my situation. Give it a try. I just make the RadioGroup name property unique.
Where this.props.id is passed from the parent (in my case I just used the parents component name) and will be unique across all RadioGroup usages. |
I have same problem, I have multiple group but some group have similar option values. when I click one group value, i see same value from other group selected automatically. I am not so expert still now. here is my mapping code
|
Hello,
I'm using the component on a table in order to filter the table according to the radio that is selected. So far so good. That works no worries.
Now, when I render 3 of these tables in different tabs, then the radio that is selected is only for the radio in the last tab and then doesn't change.
I believe this happens because the values are the same in all 3 tabs (namely: 0, 1, 2) and therefore the component doesn't know which to select.
Would it be possible to have an identifier for the specific RadioGroup (or is there one that I missed?) so that we can use it to select specific radios. Or all for that matter.
thanks
The text was updated successfully, but these errors were encountered: