From 0e51782d593f0bdd9030e360a8a26aaa31e5aae3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20K=C3=BChn?= Date: Tue, 14 Dec 2021 14:11:20 +0000 Subject: [PATCH] [IMP] mail: remove useless 't-ref="header"' Task-2694206 Part-of: odoo/odoo#81801 --- addons/mail/static/src/components/chat_window/chat_window.js | 5 ----- .../mail/static/src/components/chat_window/chat_window.xml | 1 - 2 files changed, 6 deletions(-) diff --git a/addons/mail/static/src/components/chat_window/chat_window.js b/addons/mail/static/src/components/chat_window/chat_window.js index aded8728cc6..e23fc92320e 100644 --- a/addons/mail/static/src/components/chat_window/chat_window.js +++ b/addons/mail/static/src/components/chat_window/chat_window.js @@ -15,11 +15,6 @@ export class ChatWindow extends Component { setup() { super.setup(); useUpdate({ func: () => this._update() }); - /** - * Reference of the header of the chat window. - * Useful to prevent click on header from wrongly focusing the window. - */ - this._chatWindowHeaderRef = useRef('header'); /** * Reference of the autocomplete input (new_message chat window only). * Useful when focusing this chat window, which consists of focusing 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 4b79e2e83e6..fd17eb668f6 100644 --- a/addons/mail/static/src/components/chat_window/chat_window.xml +++ b/addons/mail/static/src/components/chat_window/chat_window.xml @@ -18,7 +18,6 @@ hasCloseAsBackButton="props.hasCloseAsBackButton" isExpandable="props.isExpandable" onClicked="_onClickedHeader" - t-ref="header" />