From 7b510c36ab676def439febdf049a5fd5504adf34 Mon Sep 17 00:00:00 2001 From: Tim Whitbeck Date: Thu, 13 Feb 2014 13:27:42 -0500 Subject: [PATCH] fix(input): don't apply textInput to 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 --- src/ng/directive/input.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ng/directive/input.js b/src/ng/directive/input.js index 09e07d365e79..d80697a3438c 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,