diff --git a/public/scripts/extensions/quick-reply/src/QuickReply.js b/public/scripts/extensions/quick-reply/src/QuickReply.js index 7fbb85422..861869898 100644 --- a/public/scripts/extensions/quick-reply/src/QuickReply.js +++ b/public/scripts/extensions/quick-reply/src/QuickReply.js @@ -77,6 +77,11 @@ export class QuickReply { menu.show(evt); } }); + root.addEventListener('click', ()=>{ + if (this.message?.length > 0 && this.onExecute) { + this.onExecute(this); + } + }); const lbl = document.createElement('div'); { this.domLabel = lbl; lbl.classList.add('qr--button-label'); @@ -95,11 +100,6 @@ export class QuickReply { }); root.append(expander); } - root.addEventListener('click', ()=>{ - if (this.message?.length > 0 && this.onExecute) { - this.onExecute(this); - } - }); } } return this.dom;