From 671d53e4f48c6f286c97bd074ea0b7fa46bf7be4 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 3 Nov 2017 08:10:17 +0100 Subject: [PATCH] Fix initial value of recipient input --- skins/elastic/ui.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/skins/elastic/ui.js b/skins/elastic/ui.js index d6b1c92c0..19c4926d1 100644 --- a/skins/elastic/ui.js +++ b/skins/elastic/ui.js @@ -2239,15 +2239,14 @@ function rcube_elastic_ui() .on('change', function(e) { $('span.recipient', area).remove(); input.val(this.value).change(); - }); + }) + // copy and parse the value already set + .change(); // this one line is here to fix border of Bootstrap's input-group, // input-group should not contain any hidden elements $(obj).detach().insertBefore(area.parent()); - // Copy and parse the value already set - input.text($(obj).val()).change(); - if (rcmail.env.autocomplete_threads > 0) { ac_props = { threads: rcmail.env.autocomplete_threads,