react-bootstrap-validation icon indicating copy to clipboard operation
react-bootstrap-validation copied to clipboard

SubmitForm not picking up all the form items

Open sgentile opened this issue 8 years ago • 1 comments

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);
    };

sgentile avatar Jan 29 '16 19:01 sgentile

I'll look into that, thanks!

heilhead avatar Jan 29 '16 20:01 heilhead