From 65a7c1eb348d2345f980ba803bbe615816af3964 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 26 Sep 2017 20:28:11 +0200 Subject: [PATCH] Small fix in update_func of recipient-input --- skins/elastic/ui.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/skins/elastic/ui.js b/skins/elastic/ui.js index f153839bf..37fdef545 100644 --- a/skins/elastic/ui.js +++ b/skins/elastic/ui.js @@ -1978,10 +1978,11 @@ function rcube_elastic_ui() insert_recipient(this.name, this.email); }); - input.val(''); - apply_func(); - - return recipients.length > 0; + if (recipients.length) { + input.val(''); + apply_func(); + return true; + } }, parse_func = function(e) { // Note it can be also executed when autocomplete inserts a recipient