I'm trying to implement react-select in my form, but the options are not showing up. If I inspect the select component the options prop is filled, but the options aren't being displayed.
I've tried both an array of strings and an array of objects. Neither displays the info in the dropdown, even though both show up in the options props.
const systems = [
"SystemName/12345/1",
"SytemName1/7890/2",
"SystemName2/65432/3"
]
I've also tried:
const systems =
[{systemName: 'SystemName1", altId:12345, systemId: 1},
{systemName: 'SystemName2", altId:7890, systemId: 2},
{systemName: 'SystemName3", altId:65432, systemId: 3}]
<form className="page-form" onSubmit={handleSubmit(this.onSubmit)}>
<Row>
<Col>
<Label label="Water System" htmlFor="systemId" required />
<Select
options={systems}
isSearchable={true}
name="systemId"
value="systemId"
placeholder="Select System"
/>
....
</form>
