Skip to content

Setting input value on render causes validation error #44

Description

@sambev

I have a field that I am setting the value on at render time. When I submit the form, without entering/changing the field, I get a validation error that says the field must be present.

After reading through the code I noticed that the inputs value is indeed set, but since the input's handleChange function never gets called, the state never actually gets set on the form so the form doesn't think that field has a value.

Any thoughts?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions