diff options
author | johndoh <roundcube@tehinterweb.co.uk> | 2021-07-14 13:51:41 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-14 13:51:41 +0300 |
commit | 5cc40216704649fb16e062c35af725706343e51f (patch) | |
tree | dc6b7c30a2b78c145a07dc73fe2595f851522ea8 /skins | |
parent | 985f8b08782894578adcdf4115a3b9402e03fc0b (diff) |
Fix handling of group names with @ character in autocomplete and contacts widget #8098 (#8101)
Diffstat (limited to 'skins')
-rw-r--r-- | skins/elastic/ui.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/skins/elastic/ui.js b/skins/elastic/ui.js index dffedce8d..a6f2d577a 100644 --- a/skins/elastic/ui.js +++ b/skins/elastic/ui.js @@ -3223,9 +3223,14 @@ function rcube_elastic_ui() return result.recipients.length > 0; }, - parse_func = function(e, ac) { + parse_func = function(e, ac, trigger) { var last, paste, value = this.value; + // #8098: ignore changes when autocomplete_insert is not triggered + if (trigger === false) { + return; + } + // On paste the text is not yet in the input we have to use clipboard. // Also because on paste new-line characters are replaced by spaces (#6460) if (e.type == 'paste') { |