[Select] onValueChange vs onChange #2700
-
Beta Was this translation helpful? Give feedback.
Answered by
cschroeter
Jul 26, 2024
Replies: 1 comment 3 replies
-
@veloware <Select.HiddenSelect {...register('framework')} /> You can find the full example here: https://github.com/chakra-ui/ark/blob/main/packages/react/src/components/select/examples/form-library.tsx |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@veloware
Multiple selection works fine using
<Select.Root multiple />
(see video).Regarding the API design, you have several options:
Option A
Integrate the form library directly into your component.
Option B
Split the relevant props between the root and the hidden select.
Option C
Allow direct access to the hidden select.
Screen.Recording.2024-0…