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
The regex for automatically using the color control doesn't appear to be working correctly.
The color picker doesn't reset if the panel is reset.
To Reproduce
Respectively, from above:
Set an arg named desktopColor to a hex color string and notice that the color picker isn't rendered. You have to set type: 'color' explicitly in argTypes for the picker to appear. The default regex (documented here) should be capturing desktopColor.
Change the value of a color picker, then click the "Reset controls" button in the panel. The color will reset in the rendered component, but the color picker still shows the old value.
BTW, I'm seeing the same issue for numeric inputs: resetting the panel doesn't reset the number input to the original value, but the value being passed to the component is reset.
Describe the bug
Two problems here:
To Reproduce
Respectively, from above:
desktopColor
to a hex color string and notice that the color picker isn't rendered. You have to settype: 'color'
explicitly inargTypes
for the picker to appear. The default regex (documented here) should be capturingdesktopColor
.System
The text was updated successfully, but these errors were encountered: