diff --git a/app/assets/javascripts/discourse/app/lib/plugin-api.js b/app/assets/javascripts/discourse/app/lib/plugin-api.js index 2caaf9b4edb..3ecca9ea862 100644 --- a/app/assets/javascripts/discourse/app/lib/plugin-api.js +++ b/app/assets/javascripts/discourse/app/lib/plugin-api.js @@ -1461,7 +1461,8 @@ class PluginApi { this.modifyClass( `component:${mountedComponent}`, { - pluginId: `#{mountedComponent}/#{widgetKey}/#{appEvent}`, + pluginId: `${mountedComponent}/${widgetKey}/${appEvent}`, + didInsertElement() { this._super(); this.dispatch(appEvent, widgetKey);