From 6d5df714a7970f69a27296c157b08772ceac5b7d Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Wed, 21 Nov 2018 12:33:14 +0000 Subject: [PATCH] [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 --- addons/mail/static/src/js/composers/mention_manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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