odoo/odoo#234778

Created by fw-bot
Merged at faca1a474438fea162a0375ad25df36d190fc967

Statuses:

label
odoo-dev:saas-18.3-16.0-fix-colorpicker-romo-475586-fw
head
75b3c1163981fde503d14841cb8f571c92129f13
merged
4 weeks ago by Website, Romaric Moyeuvre (romo)
odoo/odoo
17.0 #179883
18.0 #234724
saas-18.2 #234758
saas-18.3 #234778

[FIX] web_editor: fix colorpicker UI update

Before this commit, the colorpicker UI would not update when switching
to some colors (grayscale, transparent grayscale, theme colors). It
would therefore be difficult to make small changes to those colors.

This commit make the colorpicker update correctly.

Step to reproduce the bug (example with grayscale colors):
- Add a snippet
- Change the background color to a custom color
(the colorpicker interface was updated to match the color)
- Change the background color to a grayscale color
(the colorpicker interface was not updated to match the color)

task-3806989

Forward-Port-Of: #179883