Skip to content

errorHelp gives errors #33

Open
Open

Description

@ir-fuel

This is my declaration:

<ValidatedInput
              label={translator.t('password')}
              type="password"
              name="password"
              id="password"
              placeholder={translator.t('enter_password')}
              validate='required,isLength:6:60'
              errorHelp={{
                  isLength: translator.t('password_length_error')
                }}
              tabIndex="4"/>

As soon as I submit the form I get this:

Uncaught Invariant Violation: Objects are not valid as a React child (found: object with keys {isLength}). If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons. Check the render method of ValidatedInput.

Activity

  1. marcelpanse commented on Feb 9, 2016

    @marcelpanse
    Contributor

    I have the same problem, though it doesn't fail all the time, but pretty much randomly with this exact error.

    Any idea what the problem is?

  2. marcelpanse commented on Feb 9, 2016

    @marcelpanse
    Contributor

    I see this is a duplicate of #23

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions