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