summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/chat_window/chat_window.xml
diff options
context:
space:
mode:
authorSébastien Theys <seb@odoo.com>2020-10-30 10:36:40 +0000
committerSébastien Theys <seb@odoo.com>2020-10-30 10:36:41 +0000
commit4ec26d985f33e1fa391c312b89fc611b8d688c96 (patch)
tree5e6de2878d7d39e3db753411e94af72c6c66101f /addons/mail/static/src/components/chat_window/chat_window.xml
parent9d90fd9a2a65ab1ff338bb109426ca93075937fa (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/chat_window/chat_window.xml')
-rw-r--r--addons/mail/static/src/components/chat_window/chat_window.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/components/chat_window/chat_window.xml b/addons/mail/static/src/components/chat_window/chat_window.xml
index 240cf0f974c..fad098d953c 100644
--- a/addons/mail/static/src/components/chat_window/chat_window.xml
+++ b/addons/mail/static/src/components/chat_window/chat_window.xml
@@ -9,7 +9,7 @@
'o-fullscreen': props.isFullscreen,
'o-mobile': env.messaging.device.isMobile,
'o-new-message': chatWindow and !chatWindow.thread,
- }" t-on-click="_onClick" t-on-keydown="_onKeydown" t-on-focusout="_onFocusout" t-att-data-chat-window-local-id="chatWindow ? chatWindow.localId : undefined" t-att-data-thread-local-id="chatWindow ? (chatWindow.thread ? chatWindow.thread.localId : '') : undefined"
+ }" t-on-keydown="_onKeydown" t-on-focusout="_onFocusout" t-att-data-chat-window-local-id="chatWindow ? chatWindow.localId : undefined" t-att-data-thread-local-id="chatWindow ? (chatWindow.thread ? chatWindow.thread.localId : '') : undefined"
>
<t t-if="chatWindow">
<ChatWindowHeader