This repository was archived by the owner on Oct 8, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ npm install react-file-reader --save
1414```
1515
1616## ChangeLog
17+ - 1.1.2
18+ - fixes an issue where a file couldn't be uploaded twice
19+ - 1.1.1
20+ - changes the way we're hiding the input, as previously it would break parent elements that were positioned absolutely.
1721 - 1.1.0
1822 - adds the ability to return both base64 strings and an HTML5 FileList from handleFiles
1923 - 1.0.3
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export default class ReactFileReader extends React.Component {
1010
1111 clickInput = ( ) => {
1212 let element = document . getElementById ( this . state . elementId ) ;
13-
13+ element . value = '' ;
1414 element . click ( ) ;
1515 }
1616
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ var ReactFileReader = function (_React$Component) {
4444 elementId : _this . props . elementId || ( 0 , _uuid2 . default ) ( )
4545 } , _this . clickInput = function ( ) {
4646 var element = document . getElementById ( _this . state . elementId ) ;
47-
47+ element . value = '' ;
4848 element . click ( ) ;
4949 } , _this . handleFiles = function ( event ) {
5050 if ( _this . props . base64 ) {
Original file line number Diff line number Diff line change 11{
22 "name" : " react-file-reader" ,
3- "version" : " 1.1.1 " ,
3+ "version" : " 1.1.2 " ,
44 "description" : " A flexible ReactJS component for handling styled HTML file inputs." ,
55 "main" : " index.js" ,
66 "repository" : " git@github.com:GrillWork/react-file-reader.git" ,
You can’t perform that action at this time.
0 commit comments