-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
[Bug]: Boolean control is not persistent #22679
Comments
Jiminy cricket!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.1.0-alpha.28 containing PR #22807 that references this issue. Upgrade today to the
|
@shilman I don't think the issue is fixed. When passing |
We're using |
Yes, I see this behavior in my projects as well. The exclamation mark is getting wrongly added to boolean args set from the Controls. |
Hello, Any updates on this bug? Thanks |
Same behavior on my project too, I used @NiklasPor suggestion as a quick fix. Does the job |
closing as duplicate to #25035 |
Describe the bug
As the title suggests, boolean controls are not persistent when the page is reloaded. On the one hand, it logs unnecessarily many warnings and on the other hand, direct links to stories with control values in it cannot be sent to someone else.
See the Reproduction section for more information.
To Reproduce
https://stackblitz.com/edit/github-fbee7n?file=src%2Fstories%2FButton.stories.js
Preparation: Do not use the inline preview but open the preview in a new tab (button on the upper right). Only in this way it is possible for you to see the changes in the URL.
Successful case:
Button/Primary
storyprimary
control to change it tofalse
.&args=primary:!false
is added to the URL&args=primary:!false
is still in the URL and theprimary
control is set tofalse
Failing case:
Button/Secondary
storyprimary
control to change it totrue
.&args=primary:!true
is added to the URL&args=primary:!true
is no longer in the URL and theprimary
control is set tofalse
System
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: