Closed haideralsh closed 6 months ago
Closing this issue as this is the expected behaviour for this component. In HTML, passing a number value to an input and calling onChange on that input with typeof input.target.value
will always print string
. I think we should keep the HTML standard.
Describe the bug
When using the
RadioGroup
component, the value returned from theonChange
event does not always have the type of the value that was passed in to theRadio
.Steps to reproduce
Notice how in the onChange event handler we have to
parseInt
, since the value returned is a string, whereas the value of any of the Radio inputs inside the group is a number.Expected behaviour
RadioGroup
should return the same value and type of the value passed to the Radio inputIs your team blocked from moving forward by the bug?
No we're not blocked.
Who would you like to fix the bug?
Screenshots
No response
Additional context
No response