summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2018-11-21 12:33:14 +0000
committerNicolas Lempereur <nle@odoo.com>2018-11-21 12:40:24 +0000
commit6d5df714a7970f69a27296c157b08772ceac5b7d (patch)
tree0f030a2be73dc7196bddc22f9d39f32fbcb5562d /addons
parentd395accd94b5041782bf9c24cb2a8f65061e4ade (diff)
[FIX] mail: add mention no set focus on subject
In the extended composer, we focus on subject when adding a mention in the body. Focusing in subject is wanted at the opening of the composer, but not when adding a mention. opw-1911566 closes #28910
Diffstat (limited to 'addons')
-rw-r--r--addons/mail/static/src/js/composers/mention_manager.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/js/composers/mention_manager.js b/addons/mail/static/src/js/composers/mention_manager.js
index 62608fbf511..98d295b83f9 100644
--- a/addons/mail/static/src/js/composers/mention_manager.js
+++ b/addons/mail/static/src/js/composers/mention_manager.js
@@ -416,7 +416,7 @@ var MentionManager = Widget.extend({
this._composer.$input.val(textInputNew);
this._setCursorPosition(textLeft.length+substitution.length+2);
this.set('mention_suggestions', []);
- this._composer.focus(); // to trigger autoresize
+ this._composer.focus('body'); // to trigger autoresize
},
/**
* @private