Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/skins
diff options
context:
space:
mode:
authorjohndoh <roundcube@tehinterweb.co.uk>2021-07-14 13:51:41 +0300
committerGitHub <noreply@github.com>2021-07-14 13:51:41 +0300
commit5cc40216704649fb16e062c35af725706343e51f (patch)
treedc6b7c30a2b78c145a07dc73fe2595f851522ea8 /skins
parent985f8b08782894578adcdf4115a3b9402e03fc0b (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.js7
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') {