summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/chat_window
diff options
context:
space:
mode:
authorThanh Dodeur <tso@odoo.com>2020-10-27 14:52:55 +0000
committerThanh Dodeur <tso@odoo.com>2020-10-27 15:38:45 +0000
commit8e79fefdb9990a6480fdae2684e07799e5439b06 (patch)
tree0d7e7fd5ac48c842ecafb51ecc6442947b65244d /addons/mail/static/src/components/chat_window
parent2ca3158ce2de596526067dbd86da2ef7d4ae85bd (diff)
[Fix] mail: ensures composer cleanup on message post
Before this commit, the state of the composer was not properly saving its state when focusing out, which caused erroneous composer states in some corner cases, like when posting messages on mobile in some browsers. This commit fixes this issue. opw-2366374 closes odoo/odoo#60841 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Co-authored-by: Sébastien Theys <seb@odoo.com>
Diffstat (limited to 'addons/mail/static/src/components/chat_window')
-rw-r--r--addons/mail/static/src/components/chat_window/chat_window.js6
1 files changed, 0 insertions, 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 46e60bbea54..0f8598257c3 100644
--- a/addons/mail/static/src/components/chat_window/chat_window.js
+++ b/addons/mail/static/src/components/chat_window/chat_window.js
@@ -278,12 +278,6 @@ class ChatWindow extends Component {
* @private
*/
_onFocusout() {
- if (this._inputRef.comp) {
- this._inputRef.comp.focusout();
- }
- if (this._threadRef.comp) {
- this._threadRef.comp.focusout();
- }
if (!this.chatWindow) {
// ignore focus out due to record being deleted
return;