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 26c2912b2425202de91aebcb2552c9c0c39448c0..4845aab8da5e881e3e2e1473a72767fcfcafedda 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; }