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

Formsy .reset(value) not updating components #132

Open
dsmurl opened this issue Sep 1, 2016 · 2 comments
Open

Formsy .reset(value) not updating components #132

dsmurl opened this issue Sep 1, 2016 · 2 comments

Comments

@dsmurl
Copy link

dsmurl commented Sep 1, 2016

In my code,

  componentDidMount = () => {
    console.log('Loading Test Data');
    this.myForm.reset({
      task: 'Sample Task',
    });
  };

  render() {
    return (
      <Formsy.Form
        ref={(el) => { this.myForm = el; }}
      >
        <FormsyText
          name="task"
          floatingLabelText="Type to add a new task"
        />
      </Formsy.Form>
    );
  }

The field doesn't visually update, but the _value in the formsy react state is correctly set to "Sample Task". Is this is bug or am I doing it wrong? If I'm doing things correctly then there may be a problem with the reset(value) functionality.

@achtan
Copy link

achtan commented Nov 29, 2016

hi, any luck with this one?

@dsmurl
Copy link
Author

dsmurl commented Nov 29, 2016 via email

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