You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Issue adjusting value of ColorPicker object through callback #159
When trying to set the rgb values of a ColorPicker object through a callback in python, the result is always off.
For example, if I try to set its value to {'rgb': {'r': 255, 'g': 242, 'b': 229, 'a': 1}}, it gets assigned the following values instead:
The g and b values are swapped, and the r value is set to 1. No clue why that happens.
I haven't yet fully figured out the cause of the issue, but I reckon it has something to do with the ColorPicker javascript object having its color attribute being (erroneously?) named rbg instead of rgb.
I can confirm, I am having similar difficulties. See also the example in the dash plotly documentation. The color picker is given parameter value=dict(rgb=dict(r=255, g=0, b=0, a=0) but the resulting color selection is RGBA(0,0,0,1).
Activity
ryanvolpi commentedon Oct 21, 2021
I can confirm, I am having similar difficulties. See also the example in the dash plotly documentation. The color picker is given parameter
value=dict(rgb=dict(r=255, g=0, b=0, a=0)but the resulting color selection is RGBA(0,0,0,1).issue plotly#159 resolved and tested
Karan-S-Mittal commentedon Oct 23, 2021
here's a preview of the change
Screen.Recording.2021-10-23.at.8.39.59.PM.mov
.
TCherici commentedon Oct 31, 2021
Thanks for fixing!