Async validations should not trump previous validations. Previous validations should be true as well as async validations
This commit is contained in:
parent
4d7b813953
commit
3ce01d11b2
|
@ -133,7 +133,7 @@ Validatable.prototype.isValid = function (callback) {
|
|||
asyncFail = asyncFail || fail;
|
||||
if (--wait === 0 && callback) {
|
||||
validationsDone.call(inst, function () {
|
||||
callback(!asyncFail);
|
||||
callback(valid && !asyncFail);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue