}).then(() => {
this.#uploadResolve = undefined;
this.#uploadButton.dataset.context = oldContext;
- this.#fileInput.removeEventListener("cancel", cropCancelledEvent);
+ this.#uploadButton.removeEventListener("cancel", cropCancelledEvent);
});
}
}).then(() => {
this.#uploadResolve = undefined;
this.#uploadButton.dataset.context = oldContext;
- this.#fileInput.removeEventListener("cancel", cropCancelledEvent);
+ this.#uploadButton.removeEventListener("cancel", cropCancelledEvent);
});
}
#startReplaceFile(element) {