diff options
| author | Krupa Patel <kup@odoo.com> | 2020-03-11 05:53:15 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2020-03-11 10:18:30 +0000 |
| commit | 703a9c48e910577cad3feb2e07f2d4fa1ae4ca2a (patch) | |
| tree | ae4b5d2b35b6f57954054cad64f09d3b07fe7615 /addons/web_editor | |
| parent | 5d8367747cddb8663b89f4c7b16c4fbae85d66ce (diff) | |
[FIX] web_editor: close widgets by clicking outside of them
task-2196789
closes odoo/odoo#46298
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web_editor')
| -rw-r--r-- | addons/web_editor/static/src/js/editor/snippets.editor.js | 3 |
1 files changed, 3 insertions, 0 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 26c2912b242..4845aab8da5 100644 --- a/addons/web_editor/static/src/js/editor/snippets.editor.js +++ b/addons/web_editor/static/src/js/editor/snippets.editor.js @@ -917,6 +917,9 @@ var SnippetsMenu = Widget.extend({ }); var $target = $(srcElement); + if (!$target.closest('we-button, we-toggler, .o_we_color_preview').length) { + this._closeWidgets(); + } if (!$target.closest('body > *').length) { return; } |
