diff options
| author | Sébastien Theys <seb@odoo.com> | 2020-10-30 10:36:40 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2020-10-30 10:36:41 +0000 |
| commit | 4ec26d985f33e1fa391c312b89fc611b8d688c96 (patch) | |
| tree | 5e6de2878d7d39e3db753411e94af72c6c66101f /addons/mail/static/src/components/message/message.js | |
| parent | 9d90fd9a2a65ab1ff338bb109426ca93075937fa (diff) | |
[FIX] mail: remove chat window auto-focus on click
This causes more trouble than it's worth, especially with mobile keyboards.
It also prevents from selecting any text in chat window threads.
task-2372553
Part of task-2277543
closes odoo/odoo#61031
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/mail/static/src/components/message/message.js')
| -rw-r--r-- | addons/mail/static/src/components/message/message.js | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/addons/mail/static/src/components/message/message.js b/addons/mail/static/src/components/message/message.js index 6a8c642e0a7..e09f0e4946c 100644 --- a/addons/mail/static/src/components/message/message.js +++ b/addons/mail/static/src/components/message/message.js @@ -11,7 +11,6 @@ const components = { PartnerImStatusIcon: require('mail/static/src/components/partner_im_status_icon/partner_im_status_icon.js'), }; const useStore = require('mail/static/src/component_hooks/use_store/use_store.js'); -const { markEventHandled } = require('mail/static/src/utils/utils.js'); const { timeFromNow } = require('mail.utils'); const { _lt } = require('web.core'); @@ -460,7 +459,6 @@ class Message extends Component { if (!this.hasAuthorOpenChat) { return; } - markEventHandled(ev, 'Message.authorOpenChat'); this.message.author.openChat(); } @@ -472,7 +470,6 @@ class Message extends Component { if (!this.message.author) { return; } - markEventHandled(ev, 'Message.authorOpenProfile'); this.message.author.openProfile(); } |
