diff options
| author | Thanh Dodeur <tso@odoo.com> | 2020-10-27 14:52:55 +0000 |
|---|---|---|
| committer | Thanh Dodeur <tso@odoo.com> | 2020-10-27 15:38:45 +0000 |
| commit | 8e79fefdb9990a6480fdae2684e07799e5439b06 (patch) | |
| tree | 0d7e7fd5ac48c842ecafb51ecc6442947b65244d /addons/mail/static/src/components/composer_text_input | |
| parent | 2ca3158ce2de596526067dbd86da2ef7d4ae85bd (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.js | 1 |
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 }); } |
