Skip to content

Commit 7e6749c

Browse files
committed
COMPATIBILITY: set wizardEventFieldId for uppy drop event
1 parent 9b75da8 commit 7e6749c

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

assets/javascripts/discourse/components/custom-wizard-composer-editor.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,13 @@ export default class CustomWizardComposerEditor extends ComposerEditor {
9494
this.session.set("wizardEventFieldId", this.field.id);
9595
document.getElementById(this.fileUploadElementId).click();
9696
}
97+
98+
_uploadDropTargetOptions() {
99+
return {
100+
target: this.element,
101+
onDrop: () => {
102+
this.session.set("wizardEventFieldId", this.field.id);
103+
},
104+
};
105+
}
97106
}

plugin.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22
# name: discourse-custom-wizard
33
# about: Forms for Discourse. Better onboarding, structured posting, data enrichment, automated actions and much more.
4-
# version: 2.8.9
4+
# version: 2.8.10
55
# authors: Angus McLeod, Faizaan Gagan, Robert Barrow, Keegan George, Kaitlin Maddever, Juan Marcos Gutierrez Ramos
66
# url: https://github.com/paviliondev/discourse-custom-wizard
77
# contact_emails: [email protected]

0 commit comments

Comments
 (0)