Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SubmitForm not picking up all the form items #30

Open
sgentile opened this issue Jan 29, 2016 · 1 comment
Open

SubmitForm not picking up all the form items #30

sgentile opened this issue Jan 29, 2016 · 1 comment

Comments

@sgentile
Copy link

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);
    };
@heilhead
Copy link
Owner

I'll look into that, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants