aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaitlin Potter2014-03-22 22:39:47 -0400
committerCaitlin Potter2014-03-24 10:57:42 -0400
commitb2363e31023df8240113f68b4e01d942f8009b60 (patch)
tree51d39d1fb2465a98eaa31dcd6ec7e05ac5a978e2
parentedfca4c769333ab4c313c4686d81875eae50bd56 (diff)
downloadangular.js-g3_v1_2.tar.bz2
fix(input): don't perform HTML5 validation on updated model-valueg3_v1_2
Running html5-validation immediately after model-value is updated is incorrect, because the view has not updated, and HTML5 constraint validation has not adjusted. Closes #6796 Closes #6806
-rw-r--r--src/ng/directive/input.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/ng/directive/input.js b/src/ng/directive/input.js
index c31bb400..b49b625e 100644
--- a/src/ng/directive/input.js
+++ b/src/ng/directive/input.js
@@ -450,7 +450,6 @@ function addNativeHtml5Validators(ctrl, validatorName, element) {
return value;
};
ctrl.$parsers.push(validator);
- ctrl.$formatters.push(validator);
}
}