[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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user