diff options
| author | Tim Whitbeck | 2014-02-13 13:27:42 -0500 | 
|---|---|---|
| committer | Caitlin Potter | 2014-02-13 16:43:18 -0500 | 
| commit | a9fcb0d0fc6456f80501b8820d02b04d7c15b6d6 (patch) | |
| tree | 613d72be3b418927580d414b3bb3da37db406e28 | |
| parent | a3846ab8372717c07f0346cb73eda8455a80c717 (diff) | |
| download | angular.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.js | 3 | 
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, | 
