File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,9 @@ var FileInput = (function (_React$Component) {
125
125
onChange : this . handleChange , ref : function ( c ) {
126
126
return _this2 . _reactFileReaderInput = c ;
127
127
} ,
128
+ onClick : function ( ) {
129
+ _this2 . _reactFileReaderInput . value = null ;
130
+ } ,
128
131
style : hiddenInputStyle } ) ) ,
129
132
this . props . children
130
133
) ;
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ export default class FileInput extends React.Component {
75
75
onClick = { this . triggerInput } >
76
76
< input { ...this . props } children = { undefined } type = "file"
77
77
onChange = { this . handleChange } ref = { c => this . _reactFileReaderInput = c }
78
+ onClick = { ( ) => { this . _reactFileReaderInput . value = null ; } }
78
79
style = { hiddenInputStyle } />
79
80
80
81
{ this . props . children }
You can’t perform that action at this time.
0 commit comments