diff --git a/addons/web_editor/static/src/js/snippets.options.js b/addons/web_editor/static/src/js/snippets.options.js index 996daee8753..f1cf4a47381 100644 --- a/addons/web_editor/static/src/js/snippets.options.js +++ b/addons/web_editor/static/src/js/snippets.options.js @@ -319,6 +319,7 @@ odoo.define('web_editor.snippets.options', function (require) { this.$target.off(".background-option") .on("background-color-event.background-option", (function (e, type) { e.stopPropagation(); + if (e.currentTarget !== e.target) return; this.$el.find("li:first > a").trigger(type); }).bind(this)); return res;