Using with HTML forms #3367
Unanswered
jashiels99
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm having trouble using the Listbox component with HTML forms. I'm aware there is a section on this in the documentation, and it mentions the fact that when using complex values like objects as the selected state, this will be encoded into multiple inputs using a square bracket notation for the names:
This is proving problematic, it would be nice if there was a prop on the Listbox component that determines what is actually parsed into the hidden input. In this case, I would just like it to be the ID of a record, not the whole record.
I am using Remix and Zod validation for context.
Beta Was this translation helpful? Give feedback.
All reactions