react-bootstrap-validation
react-bootstrap-validation copied to clipboard
SubmitForm not picking up all the form items
Inside the Form component I added a 'CheckBoxGroup' (react-checkbox-group)
ie.
<CheckboxGroup name="fruit" value={['apple','watermelon']}>
<input type="checkbox" value="apple" />Apple
<input type="checkbox" value="orange" />Orange
<input type="checkbox" value="watermelon" />Watermelon
</CheckboxGroup>
on handle submit, the 'fruit' key/pair is not in the values - shouldn't the form pickup all the form fields inside the form?
Form
onValidSubmit={this._handleValidSubmit}
onInvalidSubmit={this._handleInvalidSubmit}
validationEvent="onBlur">
_handleValidSubmit = (values) => {
console.log(values);
};
I'll look into that, thanks!