ic-ui-kit
ic-ui-kit copied to clipboard
[ic-radio-button] entering value in conditional field selects all radio buttons with same value
Summary of the bug
Entering the same value in two different conditional fields selects all radio buttons which share a value
🪜 How to reproduce
Tell us the steps to reproduce the problem:
- have two radio buttons in the same group, both with conditional dynamic text fields
- enter some text in one of the text fields
- enter the same text in the other text field
- both radio buttons will be selected Sometimes this will occur when no text is entered in both and no placeholder value exists, though I've not been able to reproduce this in a storybook
📸 Screenshots or code
🖥 📱 Device
- Browser version: Firefox 131.0.2
🧐 Expected behaviour
Only the currently selected radio button should be selected when the same text is entered in different conditional fields
📝 Acceptance Criteria
If relevant, describe in full detail the different interactions and edge cases that the component or patterns needs to fulfil.
Given
Two radio buttons in the same group, both with conditional fields
When
The same text is entered in both conditional fields
Then
Only the currently selected radio button should be selected
Additional info
Could be blocked by fixing this issue