From 8e79fefdb9990a6480fdae2684e07799e5439b06 Mon Sep 17 00:00:00 2001 From: Thanh Dodeur Date: Tue, 27 Oct 2020 14:52:55 +0000 Subject: [Fix] mail: ensures composer cleanup on message post MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) Co-authored-by: Sébastien Theys --- .../static/src/components/composer_text_input/composer_text_input.js | 1 + 1 file changed, 1 insertion(+) (limited to 'addons/mail/static/src/components/composer_text_input') diff --git a/addons/mail/static/src/components/composer_text_input/composer_text_input.js b/addons/mail/static/src/components/composer_text_input/composer_text_input.js index 10cdd7ff0a7..068bdd303d4 100644 --- a/addons/mail/static/src/components/composer_text_input/composer_text_input.js +++ b/addons/mail/static/src/components/composer_text_input/composer_text_input.js @@ -186,6 +186,7 @@ class ComposerTextInput extends Component { * @private */ _onFocusoutTextarea() { + this.saveStateInStore(); this.composer.update({ hasFocus: false }); } -- cgit v1.2.3