From 87b19ec3649e1ce08bc290894729c3c41bdffbf2 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Fri, 11 Oct 2024 11:24:33 +0200 Subject: [PATCH] FIX: composer event prefix needs to be set later in the render cycle. --- .../discourse/components/custom-wizard-composer-editor.js.es6 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/javascripts/discourse/components/custom-wizard-composer-editor.js.es6 b/assets/javascripts/discourse/components/custom-wizard-composer-editor.js.es6 index 29cd00c5..0bd21077 100644 --- a/assets/javascripts/discourse/components/custom-wizard-composer-editor.js.es6 +++ b/assets/javascripts/discourse/components/custom-wizard-composer-editor.js.es6 @@ -36,12 +36,13 @@ export default ComposerEditor.extend({ draftStatus: "null", replyPlaceholder: alias("field.translatedPlaceholder"), wizardEventFieldId: null, - composerEventPrefix: wizardComposerEdtiorEventPrefix, @on("didInsertElement") _composerEditorInit() { this._super(...arguments); + this.composerEventPrefix = wizardComposerEdtiorEventPrefix; + if (this.siteSettings.mentionables_enabled) { const $input = $(this.element.querySelector(".d-editor-input"));