diff --git a/addons/web_editor/static/src/js/wysiwyg/widgets/color_palette.js b/addons/web_editor/static/src/js/wysiwyg/widgets/color_palette.js index 25e8dfa2835a7ec862cb6362bba6c8f96e4daf3c..ff5fa4b0a7581c132d4c021b38435fd3701d4ef4 100644 --- a/addons/web_editor/static/src/js/wysiwyg/widgets/color_palette.js +++ b/addons/web_editor/static/src/js/wysiwyg/widgets/color_palette.js @@ -144,6 +144,13 @@ const ColorPaletteWidget = Widget.extend({ defaultColor: defaultColor, }); await this.colorPicker.prependTo($colorSection); + + // TODO Added as a fix. In master, the widget should probably not be + // instantiated at all. + if (this.options.excluded.includes('custom')) { + this.colorPicker.$el.addClass('d-none'); + } + return res; }, /**