This commit is contained in:
Jarek Radosz 2023-10-09 20:02:57 +02:00
parent 94005fe8f8
commit 8c299f2edf
No known key found for this signature in database
GPG Key ID: 62D0FBAE5BF9B953

View File

@ -362,24 +362,26 @@ export default Mixin.create(ExtendableUploader, UppyS3Multipart, {
this._uppyInstance.on("cancel-all", () => {
// Do the manual cancelling work only if the user clicked cancel
if (this.userCancelled) {
if (this.useUploadPlaceholders) {
for (const placeholder of Object.values(this.placeholders)) {
run(() => {
run(() => {
if (this.userCancelled) {
if (this.useUploadPlaceholders) {
for (const placeholder of this.placeholders.values()) {
this.appEvents.trigger(
`${this.composerEventPrefix}:replace-text`,
placeholder,
""
);
});
}
}
this.set("userCancelled", false);
this._reset();
this.appEvents.trigger(
`${this.composerEventPrefix}:uploads-cancelled`
);
}
this.set("userCancelled", false);
this._reset();
this.appEvents.trigger(`${this.composerEventPrefix}:uploads-cancelled`);
}
});
});
this._setupPreProcessors();