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
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!
In code: You can set an arg to undefined, purely by not setting the arg in the story (we no longer set the arg to its default value).
In controls: You can reset all arg values to the story's initial values (so undefined if the story didn't set it) with the reset button
You cannot set a control to undefined if the story set a value.
This was a decision discussed at length with @shilman and @domyen, it seemed a good compromise between over-complicating things and letting a user do what they want to do.
Describe the bug
should have an option to set an arg to undefined if its optional
To Reproduce
Steps to reproduce the behavior:
2.Add an optional prop
Expected behavior
I'd expect that if an arg is optional, it should have
undefined
as a value in args.Screenshots
Code snippets
If applicable, add code samples to help explain your problem.
System
Please paste the results of
npx sb@next info
here.Additional context
Related bug that was fixed previously: #4487
The text was updated successfully, but these errors were encountered: