Closed lawuc closed 9 years ago
I can comfirm that. I have the same issue on version 5.0.10.
It is the same issue with nested objects:
var schema = {
a : Joi.string();
local : Joi.object().keys({
b: Joi.string(),
c: Joi.string();
});
}
The nested error messages will never be cleaned!
This has been fixed with 5.2.0: https://github.com/jurassix/react-validation-mixin/releases/tag/v5.2.0
Ensure you upgrade joi-validation-strategy to v0.2.1
Arrays and nested objects are working. Thank you!
Awesome. Thank you!
I want to do validation array of payment dates. Currently, I have the following:
when there are errors, this.getValidationMessages returns:
The validation works nicely, except the error messages doesn't clear when I inputed the correct payment date after validation failed.
How to automatically clear error messages after correct values are inputed? I'm still using 4.2.0.
Thanks.