diff --git a/assets/javascripts/discourse/components/custom-wizard-composer-editor.js b/assets/javascripts/discourse/components/custom-wizard-composer-editor.js index c503cccc..e0bbe714 100644 --- a/assets/javascripts/discourse/components/custom-wizard-composer-editor.js +++ b/assets/javascripts/discourse/components/custom-wizard-composer-editor.js @@ -94,4 +94,13 @@ export default class CustomWizardComposerEditor extends ComposerEditor { this.session.set("wizardEventFieldId", this.field.id); document.getElementById(this.fileUploadElementId).click(); } + + _uploadDropTargetOptions() { + return { + target: this.element, + onDrop: () => { + this.session.set("wizardEventFieldId", this.field.id); + }, + }; + } } diff --git a/plugin.rb b/plugin.rb index 0ab20580..26fb4c65 100644 --- a/plugin.rb +++ b/plugin.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # name: discourse-custom-wizard # about: Forms for Discourse. Better onboarding, structured posting, data enrichment, automated actions and much more. -# version: 2.8.9 +# version: 2.8.10 # authors: Angus McLeod, Faizaan Gagan, Robert Barrow, Keegan George, Kaitlin Maddever, Juan Marcos Gutierrez Ramos # url: https://github.com/paviliondev/discourse-custom-wizard # contact_emails: development@pavilion.tech