Closed ianitsky closed 5 years ago
Hi, you can call validation function manually for input or for form.
<ValidatorForm ref={r => (this.form = r)} >
<TextValidator ref={r => (this.input = r)} />
</ValidatorForm>
runFormvalidation = () => {
this.form.walk(this.form.childs);
}
runInputValidation = () => {
this.input.validate(inputValue)
}
Now you can use promises in your custom validations as well
Check the 0.6.1
version
I have a return of the api, with an error for my form element. And I made a validation function. But, how can I trigger this after api returns my error?