redux-form - onSubmit doesnt work
<p>I'm using redux-form and I just cant get the onSubmit fuction to work.</p>

<p>EDIT: My problem is that the function is not being called, i put debugger on the onSubmit and it doesnt get there.
here is my form:</p>

<pre><code>class userForm extends Component {
    onSubmit(values) { // do here something }
    render() {
        const { handleSubmit } = this.props;
        return &lt;form onSubmit={handleSubmit(this.onSubmit)}&gt;
            &lt;Field name='id'
                component={TextField}
                label='id'/&gt;
            &lt;Field name='name'
                component={TextField}
                label='name' /&gt;
            &lt;button type='submit'&gt;Submit&lt;/button&gt;
        &lt;/form&gt;
    }
}

export default reduxForm({
    form: 'userForm'
})(userForm);
</code></pre>

<p>But it never gets to the onSubmit method.</p>

<p>What am I doing wrong?</p>