From 9e5e4e651d9f8165f5e3386911d1bf0f66168476 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20J=C3=A4gle?= Date: Wed, 23 Aug 2017 17:03:19 +0200 Subject: [PATCH] make the widget focus the input box on copying a result to it. This will make the input resize and set the send-icon, once the RC-side is fixed as well: https://github.com/mrsimpson/Rocket.Chat/issues/62 --- integration/rocket-chat/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/integration/rocket-chat/main.js b/integration/rocket-chat/main.js index dc74399c..06c1d9fa 100644 --- a/integration/rocket-chat/main.js +++ b/integration/rocket-chat/main.js @@ -407,6 +407,7 @@ function SmartiWidget(element,_options) { this.post = function(msg) { console.debug(`write text to element: ${msg}`); elem.val(msg); + elem.focus(); } }