Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit a9fcb0d

Browse files
twhitbeckcaitp
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 #6247 Closes #6231
1 parent a3846ab commit a9fcb0d

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)