shadcn-ui / ui

Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.
https://ui.shadcn.com
MIT License
74.54k stars 4.62k forks source link

[bug]: Multiple RadioGroup with overlapping Item values will conflict #3745

Open softmarshmallow opened 6 months ago

softmarshmallow commented 6 months ago

Describe the bug

Multiple RadioGroup will conflict (when having overlapping value for RadioGroupItem)

selecting from group A will effect group B, vice versa.

Affected component/components

RadioGroup

How to reproduce

Components without any state, create components like below.

Codesandbox/StackBlitz link

https://forms.grida.co/playground/Q0Y

https://github.com/shadcn-ui/ui/assets/16307013/2cc482b3-ac9c-4e23-b1a7-27cac5448055

Logs

No response

System Info

-

Before submitting

erashu212 commented 5 months ago

@softmarshmallow the attached playground is not working. Can you provide a new one and the expected behavior?

gadcam commented 3 months ago

Got the same issue @erashu212 : is not the fix of @michaelcanonizado enough to understand what is going on ?