mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-01-12 22:45:52 +08:00
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
This commit is contained in:
committed by
Caitlin Potter
parent
a3846ab837
commit
a9fcb0d0fc
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user