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
To resolve the issue where the color control automatically opens, ensure that the startOpen prop is correctly set to false by default in the ColorControl component. Check the implementation in Color.tsx and verify the stories in Color.stories.tsx.
In Color.tsx, ensure startOpen is set to false by default:
exportconstColorControl: FC<ColorControlProps>=({
name,value: initialValue,
onChange,
onFocus,
onBlur,
presetColors,
startOpen =false,// Ensure this is set to false
argType,})=>{// ...};
In Color.stories.tsx, verify that the startOpen prop is not set to true unless explicitly needed:
exportconstStartOpen: Story={args: {startOpen: true,// Only set to true for this specific story},};
This should prevent the color picker from opening automatically unless specified.
Describe the bug
When visiting a story with a color control, the control will automatically open
Reproduction steps
Additional context
No response
The text was updated successfully, but these errors were encountered: