Replies: 1 comment
-
Missed the part with the hidden input. Works fine now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm facing a problem with a controlled Select. I'm following this example: https://www.remix-validated-form.io/reference/use-control-field
I'm using the select from grommet with object options like this
const options = [
{label: Germany, value: de},
{label: France, value: fr},
...
]
Here is an example: https://storybook.grommet.io/?path=/story/input-select-object-options--object-options
If I console.log(value) the correct value (= de/fr/... )is logged. But when submitting my form submits the label (= Germany/France/...) and not the value (= de/fr/... ).
export const CustomSelect: FC = ({ name, label, options, labelKey }) => {
};
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions