summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/composer
diff options
context:
space:
mode:
authorPriyanka Kakadiya <pka@odoo.com>2020-11-02 13:12:20 +0000
committerPriyanka Kakadiya <pka@odoo.com>2020-11-23 11:47:06 +0000
commit6cc5d4ae9ed2d7dbbad51ae720365730c8a416ac (patch)
tree8d5c100b9f958da05b30293397f8fdf11700cb29 /addons/mail/static/src/components/composer
parent48d30e1375cc25fd430cdcb53e9b849be295ac26 (diff)
[FIX] mail: focus should be on composer after post message
PURPOSE When sending a message by clicking on the "send" button manually, the focus should stay on the text input (and the mobile keyboard should stay open), so that it is possible to quickly send another message afterward without having to re-click manually on the text input SPECIFICATION the focus should be set to composer automatically after sending a message LINKS closes odoo/odoo#61226 Taskid: 2372546 Pr: https://github.com/odoo/odoo/pull/61226 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Diffstat (limited to 'addons/mail/static/src/components/composer')
-rw-r--r--addons/mail/static/src/components/composer/composer.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/mail/static/src/components/composer/composer.js b/addons/mail/static/src/components/composer/composer.js
index 4434697f8fb..991d5fc4482 100644
--- a/addons/mail/static/src/components/composer/composer.js
+++ b/addons/mail/static/src/components/composer/composer.js
@@ -261,6 +261,7 @@ class Composer extends Component {
*/
_onClickSend() {
this._postMessage();
+ this.focus();
}
/**