mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 15:52:11 +08:00
DEV: Fix regression in uppy-mixin (#29252)
This API change was unintentionally introduced in06d32a8a89
Partially reverts23d90ecb26
, but keeps the new specs.
This commit is contained in:
parent
93e02069b0
commit
7b8ebebe93
|
@ -99,7 +99,7 @@ function configShim(component) {
|
|||
},
|
||||
get uploadDropTargetOptions() {
|
||||
return (
|
||||
component.uploadDropTargetOptions?.() || { target: component.element }
|
||||
component._uploadDropTargetOptions?.() || { target: component.element }
|
||||
);
|
||||
},
|
||||
get preventDirectS3Uploads() {
|
||||
|
|
|
@ -80,7 +80,7 @@ export default class ChatComposerUploads extends Component.extend(
|
|||
this._triggerUploadsChanged();
|
||||
}
|
||||
|
||||
uploadDropTargetOptions() {
|
||||
_uploadDropTargetOptions() {
|
||||
return {
|
||||
target: this.uploadDropZone || document.body,
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user