[FIX] web_editor: properly combine we-colorpicker Class attributes
Part of https://github.com/odoo/odoo/pull/42986
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user