Skip to content

Commit

Permalink
Merge pull request #1414 from nattukan0713/develop
Browse files Browse the repository at this point in the history
Fixed #1415 -  file selection not working after validation fails
  • Loading branch information
mertsincan authored Jun 24, 2020
2 parents cffecfb + e1bde46 commit 4047cc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/fileupload/FileUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export class FileUpload extends Component {
isImage(file) {
return /^image\//.test(file.type);
}

   
remove(event, index) {
this.clearInputElement();
let currentFiles = [...this.state.files];
Expand Down Expand Up @@ -182,7 +182,7 @@ export class FileUpload extends Component {
this.clearInputElement();
}

if(this.props.mode === 'basic') {
if(this.props.mode === 'basic' && this.files.length > 0) {
this.fileInput.style.display = 'none';
}
}
Expand Down

0 comments on commit 4047cc3

Please sign in to comment.