Skip to content

Commit

Permalink
fix manager
Browse files Browse the repository at this point in the history
  • Loading branch information
KonnorRogers committed Nov 22, 2024
1 parent f45f270 commit e281841
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/exports/attachment-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,10 @@ export class AttachmentManager implements AttachmentManagerAttributes {
}

handleSuccess() {
this.setUploadProgress(100);
const upload = this.directUpload;

if (upload) {
this.setUploadProgress(100);
upload.element.dispatchEvent(new AttachmentUploadSucceedEvent(upload));
upload.element.dispatchEvent(new AttachmentUploadCompleteEvent(upload));
}
Expand Down

0 comments on commit e281841

Please sign in to comment.