Skip to content

Fix: this.done is not a function on wizard upload field#312

Merged
angusmcleod merged 2 commits into
paviliondev:mainfrom
davidlippidinova:fix-wizard-upload-done
Jun 18, 2026
Merged

Fix: this.done is not a function on wizard upload field#312
angusmcleod merged 2 commits into
paviliondev:mainfrom
davidlippidinova:fix-wizard-upload-done

Conversation

@davidlippidinova

Copy link
Copy Markdown
Contributor

In custom-wizard-field-upload.js, the uploadDone callback calls this.done(), but done is not defined on CustomWizardFieldUpload — it is neither a method on the class, nor declared in its template, nor passed in by any caller. done is only defined as an action on the unrelated custom-wizard-step component and is never wired into the upload field.
On a successful upload this throws this.done is not a function, which Uppy catches and surfaces as an error dialog to the user, even though the upload itself succeeds (field.value is set before the failing call). The orphaned call is a leftover from a previous implementation.
Fix: remove the orphaned this.done() call. The upload result is already persisted via field.value, the loading state is tracked reactively through uppyUpload.uploading, and the preview renders from field.value, so no behavior is lost.

uploadDone called this.done(), which is not defined on
CustomWizardFieldUpload (not a method on the class, not in the template,
not passed by any caller; done() only exists on custom-wizard-step).
It threw 'this.done is not a function' on every successful upload,
surfacing an error dialog even though field.value was already set.
Remove the orphaned call.
@angusmcleod

Copy link
Copy Markdown
Member

Thanks 🙏 Bump the patch version number and I'll merge!

@dvlpphb

dvlpphb commented Jun 18, 2026

Copy link
Copy Markdown

Version bumped!

@angusmcleod angusmcleod merged commit 0bb72d6 into paviliondev:main Jun 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants