diff --git a/app/assets/javascripts/discourse/app/mixins/uppy-upload.js b/app/assets/javascripts/discourse/app/mixins/uppy-upload.js index 8e8a28a02da..681c1349964 100644 --- a/app/assets/javascripts/discourse/app/mixins/uppy-upload.js +++ b/app/assets/javascripts/discourse/app/mixins/uppy-upload.js @@ -99,7 +99,7 @@ function configShim(component) { }, get uploadDropTargetOptions() { return ( - component.uploadDropTargetOptions?.() || { target: component.element } + component._uploadDropTargetOptions?.() || { target: component.element } ); }, get preventDirectS3Uploads() { diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-composer-uploads.js b/plugins/chat/assets/javascripts/discourse/components/chat-composer-uploads.js index 01f56d0ea88..fd1f17c65c3 100644 --- a/plugins/chat/assets/javascripts/discourse/components/chat-composer-uploads.js +++ b/plugins/chat/assets/javascripts/discourse/components/chat-composer-uploads.js @@ -80,7 +80,7 @@ export default class ChatComposerUploads extends Component.extend( this._triggerUploadsChanged(); } - uploadDropTargetOptions() { + _uploadDropTargetOptions() { return { target: this.uploadDropZone || document.body, };