I am building a form using redux forms and i'm using react-bootstrap for ui framework. But i can't get redux forms to work with react-bootstrap select component. The select field is displayed, but the options are not rendered and they are not visible. Any help would be appreciated.
This is what i have so far:
form.js:
render() {
<Form horizontal onSubmit={handleSubmit}>
<Field component={SelectField} label='Gender' name='gender'>
<option value='male'>Male</option>
<option value='female'>Female</option>
</Field>
</Form>
}
selectField.js:
props => {
return (
<FormGroup>
<Col componentClass={ControlLabel} sm={2}>
{props.label}
</Col>
<Col sm={4}>
<FormControl componentClass='select' placeholder='select'
{...props.input}>
</FormControl>
</Col>
</FormGroup>
);
}