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

resetForm() = this.getInitialState is not a function #65

Closed
timothyallan opened this issue May 9, 2017 · 3 comments
Closed

resetForm() = this.getInitialState is not a function #65

timothyallan opened this issue May 9, 2017 · 3 comments

Comments

@timothyallan
Copy link

Hiya, I'm using React 15.5.4 and React Form 1.2.7, and using resetForm() is now giving me this.getInitialState is not a function errors?
Happens in this area here:

 key: 'resetForm',
    value: function resetForm() {
      return this.setFormState(this.getInitialState());
    }
@DjLeChuck
Copy link
Contributor

You're right. It's caused by this commit: 9035b82#diff-62acef2590804164cb77b4b5aced00ebL38

@timothyallan
Copy link
Author

This looks like it's been fixed with #69 . Just waiting on a push to NPM with the update!

@tannerlinsley
Copy link
Collaborator

Pushed 1.2.8

This issue was closed.
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

3 participants