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

Commit 32cf1e0

Browse files
committed
Merge pull request #149 from blowsie/patch-1
Returning undefined, will cause any subsequent validation tests to fail
2 parents 4180b18 + 76acf1e commit 32cf1e0

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
@@ -49,7 +49,7 @@ angular.module('ui.validate',[]).directive('uiValidate', function () {
4949
} else {
5050
// expression is false
5151
ctrl.$setValidity(key, false);
52-
return undefined;
52+
return valueToValidate;
5353
}
5454
};
5555
validators[key] = validateFn;

0 commit comments

Comments
 (0)