[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
This commit is contained in:
Nicolas Lempereur
2018-11-21 12:40:24 +00:00
parent d395accd94
commit 6d5df714a7
@@ -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