Skip to content

Commit

Permalink
fix(input): don't apply textInput to <input type="file">
Browse files Browse the repository at this point in the history
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 angular#6247
Closes angular#6231
  • Loading branch information
twhitbeck authored and Sebastien Armand - sa250111 committed Feb 19, 2014
1 parent f1ac7db commit 7b510c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ng/directive/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7b510c3

Please sign in to comment.