Skip to content

Commit

Permalink
fix: clear value on upload
Browse files Browse the repository at this point in the history
  • Loading branch information
cooper667 authored Jun 9, 2022
1 parent c0d308c commit 1f6ee4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UploadImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ export class UploadImage extends Component<Props> {
argsPromises.push(this.uploadImage(e.target.files[i]));
}

e.target.files = null;
e.target.value = null;
Promise.allSettled(argsPromises)
.then(
(callbackArgsArray: PromiseSettledResult<CallbackArgs>[]) => {
Expand Down

0 comments on commit 1f6ee4d

Please sign in to comment.