Skip to content
This repository was archived by the owner on Jan 24, 2019. It is now read-only.

Commit 76acf1e

Browse files
committed
Returning undefined, will result in all following validation tests to fail
1 parent 1c5c5e1 commit 76acf1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/validate/validate.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ angular.module('ui.validate',[]).directive('uiValidate', function () {
4747
} else {
4848
// expression is false
4949
ctrl.$setValidity(key, false);
50-
return undefined;
50+
return valueToValidate;
5151
}
5252
};
5353
validators[key] = validateFn;

0 commit comments

Comments
 (0)