diff --git a/src/components/fileupload/FileUpload.js b/src/components/fileupload/FileUpload.js index 528e9909bf..10a0688988 100644 --- a/src/components/fileupload/FileUpload.js +++ b/src/components/fileupload/FileUpload.js @@ -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]; @@ -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'; } }