Skip to content

Commit

Permalink
Fixed #1723 - Clear file list after upload
Browse files Browse the repository at this point in the history
  • Loading branch information
johshisha committed Feb 18, 2022
1 parent 470a428 commit 7068f6a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/fileupload/FileUpload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ export default {
}
this.$emit('uploader', {files: this.files});
this.clear()
}
else {
let xhr = new XMLHttpRequest();
Expand Down

1 comment on commit 7068f6a

@seball78
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about this behavior. When clear is called for a custom upload, it removes the progress bar and the list of files currently uploading. We should call clear in our custom upload function only after it is finished.

Please sign in to comment.