DEV: Fix regression in uppy-mixin (#29252)

This API change was unintentionally introduced in 06d32a8a89

Partially reverts 23d90ecb26, but keeps the new specs.
This commit is contained in:
David Taylor 2024-10-17 10:38:19 +01:00 committed by GitHub
parent 93e02069b0
commit 7b8ebebe93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ function configShim(component) {
},
get uploadDropTargetOptions() {
return (
component.uploadDropTargetOptions?.() || { target: component.element }
component._uploadDropTargetOptions?.() || { target: component.element }
);
},
get preventDirectS3Uploads() {

View File

@ -80,7 +80,7 @@ export default class ChatComposerUploads extends Component.extend(
this._triggerUploadsChanged();
}
uploadDropTargetOptions() {
_uploadDropTargetOptions() {
return {
target: this.uploadDropZone || document.body,
};