From 76acf1eba7611b893468e7ad5608e75676a55723 Mon Sep 17 00:00:00 2001 From: Sam Blowes Date: Tue, 10 Dec 2013 11:17:05 +0000 Subject: [PATCH] Returning undefined, will result in all following validation tests to fail --- modules/validate/validate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;