diff options
| author | qsm-odoo <qsm@odoo.com> | 2019-12-26 17:32:13 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2019-12-27 12:03:47 +0000 |
| commit | a8b0cc451ce1138ac89ba2efa46ae8fe20157e4b (patch) | |
| tree | 99ad417f5d9287e048131bc3a8f66c6fbd41a099 /addons/web_editor/static/src | |
| parent | cf0146934d5377ae4b65a46fe86fbb21ab6ec7cb (diff) | |
[FIX] web_editor: update leftpanel widget visibility after value updates
The visibility was sometimes updated too soon, while the values were not
updated yet.
Part of https://github.com/odoo/odoo/pull/42407
Diffstat (limited to 'addons/web_editor/static/src')
| -rw-r--r-- | addons/web_editor/static/src/js/editor/snippets.options.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/web_editor/static/src/js/editor/snippets.options.js b/addons/web_editor/static/src/js/editor/snippets.options.js index fca6783ca20..67b3e2a2f4d 100644 --- a/addons/web_editor/static/src/js/editor/snippets.options.js +++ b/addons/web_editor/static/src/js/editor/snippets.options.js @@ -1586,12 +1586,11 @@ const SnippetOptionWidget = Widget.extend({ // hold have been updated). return widget.updateUI(widget === forced); }); + await Promise.all(proms); if (!noVisibility) { await this.updateUIVisibility(); } - - return Promise.all(proms); }, /** * Updates the UI visibility - @see _computeVisibility. For widget update, |
