diff --git a/addons/web_editor/static/src/js/editor/snippets.options.js b/addons/web_editor/static/src/js/editor/snippets.options.js index f01e3ebd310..2f41fb2060b 100644 --- a/addons/web_editor/static/src/js/editor/snippets.options.js +++ b/addons/web_editor/static/src/js/editor/snippets.options.js @@ -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