Skip to content

Commit adad9ef

Browse files
twhitbeckmatsko
authored andcommitted
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 angular#6247 Closes angular#6231
1 parent 1953b0b commit adad9ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ng/directive/input.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,8 @@ var inputType = {
424424
'hidden': noop,
425425
'button': noop,
426426
'submit': noop,
427-
'reset': noop
427+
'reset': noop,
428+
'file': noop
428429
};
429430

430431
// A helper function to call $setValidity and return the value / undefined,

0 commit comments

Comments
 (0)