Skip to content
This repository was archived by the owner on Oct 8, 2018. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ npm install react-file-reader --save
```

## ChangeLog
- 1.1.2
- fixes an issue where a file couldn't be uploaded twice
- 1.1.1
- changes the way we're hiding the input, as previously it would break parent elements that were positioned absolutely.
- 1.1.0
- adds the ability to return both base64 strings and an HTML5 FileList from handleFiles
- 1.0.3
Expand Down
2 changes: 1 addition & 1 deletion ReactFileReader.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default class ReactFileReader extends React.Component {

clickInput = () => {
let element = document.getElementById(this.state.elementId);

element.value = '';
element.click();
}

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var ReactFileReader = function (_React$Component) {
elementId: _this.props.elementId || (0, _uuid2.default)()
}, _this.clickInput = function () {
var element = document.getElementById(_this.state.elementId);

element.value = '';
element.click();
}, _this.handleFiles = function (event) {
if (_this.props.base64) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-file-reader",
"version": "1.1.1",
"version": "1.1.2",
"description": "A flexible ReactJS component for handling styled HTML file inputs.",
"main": "index.js",
"repository": "git@github.com:GrillWork/react-file-reader.git",
Expand Down