cschroeter / park-ui

Beautifully designed components built on Ark UI that work for the JS and CSS frameworks of your choice.
https://park-ui.com
MIT License
1.47k stars 59 forks source link

Radio Group: Cannot change value - same with Radio Button Group #325

Open marviobezerra opened 1 month ago

marviobezerra commented 1 month ago

Steps to reproduce

Copy the sample code from https://park-ui.com/docs/panda/components/radio-group into a new component and try to change the value.

On the same component, the event onValueChange never triggers.

Same issue with other Components

Version

@ark-ui/react@3.0.2 @park-ui/panda-preset@0.37.1

marviobezerra commented 1 month ago

Workaround: downgrading to @ark-ui/react@3.0.0

coopbri commented 2 weeks ago

Adding the RadioGroup.ItemHiddenInput subcomponent from Ark fixed it for me. See https://github.com/cschroeter/park-ui/blob/main/website/src/components/ui/checkbox.tsx#L34 for reference, and just add it as a child of RadioGroup.Item

coopbri commented 2 weeks ago

Oh, just discovered someone else discovered the solution as well here: https://github.com/cschroeter/park-ui/issues/328