<Select onChange()>

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