Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to reset individual @storybook/addon-controls controls #18223

Closed
emattias opened this issue May 13, 2022 · 2 comments
Closed

Ability to reset individual @storybook/addon-controls controls #18223

emattias opened this issue May 13, 2022 · 2 comments

Comments

@emattias
Copy link

Right now you can reset all controls by pressing this button:

CleanShot 2022-05-13 at 16 24 20@2x

Sometimes I want to reset only one field. Please add that ability

@seanmaisch
Copy link

Agreed, I would like this as well please, especially when dealing with stories with lots of controls configured and you only want one reset (like a color).

@lucapollani
Copy link

lucapollani commented Jul 19, 2023

Agree on this, dealing with this kind of controls like "text" when there's not a default value, there's not actually the possibility to reset them to "undefined", the will always pass empty string at least.

image

Here I cannot get back to previous state:
image

PS. Probably need to add the label "addon: controls" to the issue in order to track it better.

@storybookjs storybookjs locked and limited conversation to collaborators Dec 28, 2023
@vanessayuenn vanessayuenn converted this issue into discussion #25353 Dec 28, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

3 participants