Fixed #257 - FileUpload Multiple: Error when deleting file before upload
parent
a9fe3617e4
commit
6d5030529c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue