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

pass formStatus to wrapped component #15

Closed
jhsu opened this issue Jul 26, 2016 · 0 comments · Fixed by #22
Closed

pass formStatus to wrapped component #15

jhsu opened this issue Jul 26, 2016 · 0 comments · Fixed by #22

Comments

@jhsu
Copy link
Contributor

jhsu commented Jul 26, 2016

would you be open to passing formStatus to the wrapped component? ie:

      return <Wrapped
        { ...this.props }
        fields={this.state.fields.toJS()}
        formStatus={this.state.form.toJS()}
        formSubmit={this.formSubmit}
        setDefaultValues={this.setDefaultValues}
      />

This would be useful in cases where you might want to disable something if the form is not valid.

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

Successfully merging a pull request may close this issue.

1 participant