react-bootstrap-validation icon indicating copy to clipboard operation
react-bootstrap-validation copied to clipboard

errorHelp gives errors

Open ir-fuel opened this issue 9 years ago • 2 comments

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.

ir-fuel avatar Feb 03 '16 12:02 ir-fuel

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?

marcelpanse avatar Feb 09 '16 09:02 marcelpanse

I see this is a duplicate of #23

marcelpanse avatar Feb 09 '16 09:02 marcelpanse