summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/composer_text_input
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/composer_text_input
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/composer_text_input')
-rw-r--r--addons/mail/static/src/components/composer_text_input/composer_text_input.js1
1 files changed, 1 insertions, 0 deletions
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 });
}