aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaitlin Potter2014-03-22 22:39:47 -0400
committerCaitlin Potter2014-03-24 10:54:09 -0400
commitb472d0275f2900beba3b1f2fcee821369f8c15c1 (patch)
treee680b9f8a29e64d8b53231d3ecaaa7e1c4f24b95
parent8339c2ebffd513a22578ee549b0ecf08c2ff6eb8 (diff)
downloadangular.js-g3_v1_3.tar.bz2
fix(input): don't perform HTML5 validation on updated model-valueg3_v1_3
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 cb432c52..2f78db04 100644
--- a/src/ng/directive/input.js
+++ b/src/ng/directive/input.js
@@ -874,7 +874,6 @@ function addNativeHtml5Validators(ctrl, validatorName, element) {
return value;
};
ctrl.$parsers.push(validator);
- ctrl.$formatters.push(validator);
}
}