Closed anandsingh1606 closed 5 years ago
Hi yes it returns promise, I forgot to change readme, thanks for pointing
after a bit more debug i found that its been changed in latest releases.
the example you have in other issue is using 0.5.1
and that has
walk = (children, dryRun) => {
const self = this;
let result = true;
if (Array.isArray(children)) {
children.forEach((input) => {
if (!self.checkInput(input, dryRun)) {
result = false;
}
return input;
});
} else {
result = self.walk([children], dryRun);
}
return result;
}
but i am getting return value as promise. I try to check the code and found the same https://github.com/NewOldMax/react-form-validator-core/blob/master/src/ValidatorForm.jsx#L149 -> https://github.com/NewOldMax/react-form-validator-core/blob/master/src/ValidatorForm.jsx#L69
Let me know if I am missing something.