react-bootstrap-validation
react-bootstrap-validation copied to clipboard
errorHelp gives errors
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.
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?
I see this is a duplicate of #23