I've got a select input that triggers conditional validations. The first item is intentionally left blank and passes a value of undefined to the validator
this generates an error:
'formData.country': function (value) {
return Validator.value(value).required();
},
this does not, because the value passed cannot be null or undefined (or 0 or false in this case)
'formData.country': function (value) {
return Validator.value(value || '').required();
},
It would be helpful, I think,to have the possibility of passing an undefined or null handled internally.
I've got a select input that triggers conditional validations. The first item is intentionally left blank and passes a value of undefined to the validator
this generates an error:
this does not, because the value passed cannot be null or undefined (or 0 or false in this case)
It would be helpful, I think,to have the possibility of passing an undefined or null handled internally.