You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The RadioButton component sets its dom tree ID based on the value outputted if selected. This is okey as long as there is just one single RadioGroup in the dom tree, but if you add multiple RadioGroups, chances are that some of the RadioButtons within those groups will have the same value and thus same ID. This is an issue and creates mysterious bugs since when you select an option, where the RadioButton component has set the ID of the underlying as the same as another in the dom tree, both the values will be updated and thus create an unwanted behaviour
To Reproduce
Steps to reproduce the behavior:
Create two RadioGroups
Add 2 RadioButtons to both
Let both RadioGroups have the options "yes" and "no"
Try to chose "yes" for the first RadioGroup, and then "no" for the second one
You will then see both of them getting updated.
Expected behavior
When I have two separate RadioGroups, but with some of the same option values of the RadioButtons inside, both the RadioGroups will update independently of the other RadioGroup.
To Fix
Add an ID value as props to the RadioGroup and let the RadioButtons inside the radio group be based on its own value and the ID of the RadioGroup that "owns" it.
Desktop (please complete the following information):
Chrome 7.0.4280.141
MacOs Mojave
The text was updated successfully, but these errors were encountered:
Describe the bug
The RadioButton component sets its dom tree ID based on the value outputted if selected. This is okey as long as there is just one single RadioGroup in the dom tree, but if you add multiple RadioGroups, chances are that some of the RadioButtons within those groups will have the same value and thus same ID. This is an issue and creates mysterious bugs since when you select an option, where the RadioButton component has set the ID of the underlying as the same as another in the dom tree, both the values will be updated and thus create an unwanted behaviour
To Reproduce
Steps to reproduce the behavior:
You will then see both of them getting updated.
Expected behavior
When I have two separate RadioGroups, but with some of the same option values of the RadioButtons inside, both the RadioGroups will update independently of the other RadioGroup.
To Fix
Add an ID value as props to the RadioGroup and let the RadioButtons inside the radio group be based on its own value and the ID of the RadioGroup that "owns" it.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: