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 caitp committed Feb 13, 2014
1 parent a3846ab commit a9fcb0d
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 a9fcb0d

Please sign in to comment.