diff --git a/app/webpacker/controllers/chat_controller.js b/app/webpacker/controllers/chat_controller.js index 527c863387..651773f181 100644 --- a/app/webpacker/controllers/chat_controller.js +++ b/app/webpacker/controllers/chat_controller.js @@ -47,6 +47,8 @@ export default class extends Controller { this.waitForZendeskScript(() => { this.showWebWidget(); this.waitForWebWidget(() => { + const chat = document.querySelector('[title="Messaging window"]'); + chat.focus(); this.chatTarget.textContent = 'Chat online'; }); });