Make radio group truly uncontrolled #2661
-
|
Hi Paste team. This is kind of a follow up on this discussion, where I requested to make optional the In this case my suggestion is that the The purpose of this suggestion is to make the type of the I did a quick research and you are using the same Let me know your thoughts on this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi @arodriguezcortes! Let us know if that solution works for you! |
Beta Was this translation helpful? Give feedback.

Hi @arodriguezcortes!
RadioGroupdoes not have a matching HTML element, and exists mostly to aid in abstracting away certain difficulties. At theRadiolevel , however, you can pass the component anonChangethat will return the native browser event from the radio input as a direct one to one mapping to its native behavior. If you're using uncontrolledRadioGroup, we suggest giving theRadiocomponents theonChange(as opposed to theRadioGroup). Here's an example in our Storybook (and its implementation).Let us know if that solution works for you!