Skip to content
Snippets Groups Projects
Commit 404ed0f7 authored by qsm-odoo's avatar qsm-odoo
Browse files

[FIX] web_editor: do not propagate event communication between

background and color snippet options

The background and color snippet options communicate so that if a
color is set while a background is already set, the backgrond is
removed. The problem is that the event propagation was not stop
so if a snippet had a background and one of its child set a color,
the background was removed.
parent a10fe123
No related branches found
No related tags found
No related merge requests found
......@@ -318,6 +318,7 @@ odoo.define('web_editor.snippets.options', function (require) {
var res = this._super.apply(this, arguments);
this.$target.off(".background-option")
.on("background-color-event.background-option", (function (e, type) {
e.stopPropagation();
this.$el.find("li:first > a").trigger(type);
}).bind(this));
return res;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment