AsyncPaginate isMulti with a single value output is undefined
The current behavior?
When I add isMulti to a react-select it works perfectly for 2 or more items selected.
If only one item is selected the field returns undefined when submitted.
What is the expected behavior?
I want the react-select to return the data if one thing is selected, or multiple.
I'm sorry I have not submitted a sandbox. It feels like when I added isMulti there is something basic I have missed out, or maybe isMulti is the wrong thing to use.
Question
AsyncPaginate isMulti with a single value output is undefined
The current behavior?
When I add
isMulti
to areact-select
it works perfectly for 2 or more items selected. If only one item is selected the field returns undefined when submitted.What is the expected behavior?
I want the react-select to return the data if one thing is selected, or multiple.
Sample Code
What's your environment?
"react-select": "4.3.1", "react-select-async-paginate": "0.5.3",
Other information
I'm sorry I have not submitted a sandbox. It feels like when I added
isMulti
there is something basic I have missed out, or maybeisMulti
is the wrong thing to use.Thanks very much.