summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web_editor/static/src/js')
-rw-r--r--addons/web_editor/static/src/js/editor/snippets.editor.js3
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;
}