This isn’t working right for me. If I try an invalid input and then correct this to a valid input, console.log(result.result) stays as “fail” even though result.components shows that all individual inputs are valid:
First, console.log(result.components) on the invalid input (where one required input is missing):
[
{
"component": "latitudeField",
"msg": "",
"valid": true
},
{
"component": "longitudeField",
"msg": "",
"valid": true
},
{
"component": "rangeOutputM",
"msg": "",
"valid": true
},
{
"component": "firstNameInput",
"msg": "",
"valid": true
},
{
"component": "lastNameInput",
"msg": "",
"valid": true
},
{
"component": "emailInput",
"msg": "value missing",
"valid": false
}
]
Secondly, the corrected input where all individual inputs are valid, but console.log(result.results) is still returning “fail”:
[
{
"component": "latitudeField",
"msg": "",
"valid": true
},
{
"component": "longitudeField",
"msg": "",
"valid": true
},
{
"component": "rangeOutputM",
"msg": "",
"valid": true
},
{
"component": "firstNameInput",
"msg": "",
"valid": true
},
{
"component": "lastNameInput",
"msg": "",
"valid": true
},
{
"component": "emailInput",
"msg": "",
"valid": true
}
]
Please could this be addressed?