diff options
| author | fja-odoo <fja@odoo.com> | 2019-12-18 14:25:12 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2020-01-15 12:02:50 +0000 |
| commit | ac930249ba09b2aad572799ea8c04c4b13283ae9 (patch) | |
| tree | 0a1e9945a044a85abd0a254a86223d5d89693425 /addons/web_editor/static/src | |
| parent | dc716ea42bb257127b9f7a170541a1111a7a7302 (diff) | |
[IMP] web_editor: update left panel UI *after* onFocus method call
Call the `onFocus` method before the `updateUI` one so that we can
make changes before we update/render the UI (so that `updateUI` may
be influenced by something done in `onFocus`).
Needed for upcoming task: https://github.com/odoo/odoo/pull/42189
closes odoo/odoo#43334
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web_editor/static/src')
| -rw-r--r-- | addons/web_editor/static/src/js/editor/snippets.editor.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/editor/snippets.editor.js b/addons/web_editor/static/src/js/editor/snippets.editor.js index dc2f997bf54..1e510ba9414 100644 --- a/addons/web_editor/static/src/js/editor/snippets.editor.js +++ b/addons/web_editor/static/src/js/editor/snippets.editor.js @@ -344,8 +344,8 @@ var SnippetEditor = Widget.extend({ var styles = _.values(editor.styles); _.sortBy(styles, '__order').forEach(style => { if (show) { - style.updateUI(); style.onFocus(); + style.updateUI(); } else { style.onBlur(); } |
