diff --git a/modules/validate/validate.js b/modules/validate/validate.js index fb315351..c794b45e 100644 --- a/modules/validate/validate.js +++ b/modules/validate/validate.js @@ -49,7 +49,7 @@ angular.module('ui.validate',[]).directive('uiValidate', function () { } else { // expression is false ctrl.$setValidity(key, false); - return undefined; + return valueToValidate; } }; validators[key] = validateFn;