aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Whitbeck2014-02-13 13:27:42 -0500
committerCaitlin Potter2014-02-13 16:43:18 -0500
commita9fcb0d0fc6456f80501b8820d02b04d7c15b6d6 (patch)
tree613d72be3b418927580d414b3bb3da37db406e28
parenta3846ab8372717c07f0346cb73eda8455a80c717 (diff)
downloadangular.js-a9fcb0d0fc6456f80501b8820d02b04d7c15b6d6.tar.bz2
fix(input): don't apply textInput to <input type="file">
textInput shouldn't be applied to file inputs to ease writing of custom file input directives. This change prevents file inputs from instantiating the text input parser/formatter pipelines. Closes #6247 Closes #6231
-rw-r--r--src/ng/directive/input.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ng/directive/input.js b/src/ng/directive/input.js
index 09e07d36..d80697a3 100644
--- a/src/ng/directive/input.js
+++ b/src/ng/directive/input.js
@@ -424,7 +424,8 @@ var inputType = {
'hidden': noop,
'button': noop,
'submit': noop,
- 'reset': noop
+ 'reset': noop,
+ 'file': noop
};
// A helper function to call $setValidity and return the value / undefined,