Setup:
- An input field that has attached a
wpColorPicker
instance. - An external event that changes the input value color.
Issues:
On value change the color shown by the colorpicker doesn't get automatically updated, neither the selection when user open up the colorpicker dialog box.
wpColorPicker
doesn't have neitherremove
,destroy
norupdate
methods, so there is no simple way to do this.And lastly, they wrap the input field in a bunch of other tags to do the styling, so no simple manual removal can be done.
Question:
- How can I update the color on the widget and its selection when user initiates interaction upon field value change?