Fixed #257 - FileUpload Multiple: Error when deleting file before upload

pull/310/head
cagataycivici 2020-04-07 12:27:51 +03:00
parent a9fe3617e4
commit 6d5030529c
1 changed files with 2 additions and 1 deletions

View File

@ -252,7 +252,8 @@ export default {
},
remove(index) {
this.clearInputElement();
this.state.files.slice(index, 1);
this.files.splice(index, 1);
this.files = [...this.files];
},
isImage(file) {
return /^image\//.test(file.type);