Skip to content

Commit 7b510c3

Browse files
twhitbeckSebastien Armand - sa250111
authored and
Sebastien Armand - sa250111
committed
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 f1ac7db commit 7b510c3

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)