<Select onChange()>
Does someone knows how I can apply
onChange
on a Select element?
(shadcn ui)
https://paste.pythondiscord.com/akujoqupukSolution:Jump to solution
Shadcn ui is just a wrapper around Radix UI. Correct prop is
onValueChange
. See https://www.radix-ui.com/docs/primitives/components/selectSelect – Radix UI
Displays a list of options for the user to pick from—triggered by a button.
2 Replies
Solution
Shadcn ui is just a wrapper around Radix UI. Correct prop is
onValueChange
. See https://www.radix-ui.com/docs/primitives/components/selectSelect – Radix UI
Displays a list of options for the user to pick from—triggered by a button.
Thanks