Make Selects built with useMultipleSelection
work with traditional forms
#1450
Labels
useMultipleSelection
work with traditional forms
#1450
Hey,
I was wondering how to use
useMultipleSelection
to create a Multi-Select/Multi-Combobox that can be used to handle submit/change events of traditional forms (i.e. a way to create suitable name/value entries). I know that for a Single-Combobox, we can pass aname
togetInputProps
which works just fine.If we're doing the same for a multi-select, that of course does not work since there is more than just one value. We're currently rendering a hidden native
<select>
and set the options'selected
attributes according to our current state, then dispatching achange
event programmatically so that we can do something likeDoing so feels unnecessary and we're probably just missing something that's built-in to downshift.
In other words: We'd like our custom Multi-Select to behave just like its native counterpart without having to write custom code that enables this behavior. Is there an option we're missing or is this supposed to be solved in user-land?
Thank you
downshift
version: 7.0.4node
version: 16.17.0npm
version: 8.15.0The text was updated successfully, but these errors were encountered: