--- title: Wire shadcn Select with onValueChange Instead of Spread impact: MEDIUM impactDescription: prevents a Radix Select that renders but never writes to the form tags: integ, shadcn, select, radix --- ## Wire shadcn Select with onValueChange Instead of Spread shadcn's Select (built on Radix) uses `onValueChange` instead of `onChange`. Spreading field props directly doesn't work. Manually wire the value change handler. **Incorrect (spread doesn't work with Radix Select):** ```typescript function CountrySelect({ control }: { control: Control }) { return ( ( )} /> ) } ``` **Correct (wire props individually):** ```typescript function CountrySelect({ control }: { control: Control }) { return ( ( )} /> ) } ``` Reference: [shadcn Select](https://ui.shadcn.com/docs/components/select)