[FIX] web_editor: properly combine we-colorpicker Class attributes

Part of https://github.com/odoo/odoo/pull/42986
This commit is contained in:
qsm-odoo
2020-01-09 12:50:10 +00:00
parent e923058568
commit c197d3f8bf
@@ -925,13 +925,13 @@ const MultiUserValueWidget = UserValueWidget.extend({
});
const ColorpickerUserValueWidget = SelectUserValueWidget.extend({
className: (ButtonUserValueWidget.prototype.className || '') + ' o_we_so_color_palette',
custom_events: {
className: (SelectUserValueWidget.prototype.className || '') + ' o_we_so_color_palette',
custom_events: _.extend({}, SelectUserValueWidget.prototype.custom_events, {
'color_picked': '_onColorPicked',
'color_hover': '_onColorHovered',
'color_leave': '_onColorLeft',
'color_reset': '_onColorReset',
},
}),
/**
* @override