diff options
| author | Samuel Degueldre <sad@odoo.com> | 2021-03-23 12:56:42 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2021-03-25 10:16:32 +0000 |
| commit | 7623a0c771495cd41bf40af37c0d2b6e4beb7cdc (patch) | |
| tree | 1760b06a056762514d7be18f4558ba01401665b0 /addons/mail/static/src/components/thread_view/thread_view.xml | |
| parent | 374d3c7f95fca9832afb0d34d710f28dbadcdfa6 (diff) | |
[FIX] web_editor: fix race condition in option selection
Previously, when selecting certain options, especially ones which had
slow updateUI methods, the selected value was sometimes reset to its
previous value. This was caused by a race condition in which, when a
snippet option updated its value, it would wait for options on the
parent snippet editors to update all of their options' UI, but it
incorrectly only waited for *one* of the snippet editors to finish
instead of waiting for all of them.
This commit fixes that by stopping the event propagation and triggering
a new event that will let the direct parent know when all parent editors
are done updating their options' UI before signalling that the UI update
is done.
task-2487578
closes odoo/odoo#68238
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Co-authored-by: Arthur Detroux <ard@odoo.com>
Diffstat (limited to 'addons/mail/static/src/components/thread_view/thread_view.xml')
0 files changed, 0 insertions, 0 deletions
