Skip to content
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]: Values are incorrectly passed through the url in a new window #24039

Closed
inspector-code opened this issue Sep 1, 2023 · 2 comments
Closed

Comments

@inspector-code
Copy link

inspector-code commented Sep 1, 2023

Describe the bug

If you change the primary argument from false to true, it will still be false. For example:

http://localhost:6007/iframe.html?args=primary:!false&id=example-button--primary&viewMode=story - will be false
http://localhost:6007/iframe.html?args=primary:!true&id=example-button--primary&viewMode=story - will be false too

To Reproduce

No response

System

No response

Additional context

No response

@sonallux
Copy link

sonallux commented Nov 6, 2023

I experience the same issue. When I open the iframe using the "Open canvas in new tab" button, I am also getting an URL where boolean values are prefix with !. But when I manually remove the ! in the URL then boolean parameters are respected and everything works as expected.

Edit: I am using Storybook 7.4.5. I have not checked the latest 7.5 version.

@vanessayuenn
Copy link
Contributor

I think this is a dupe of #25035

@vanessayuenn vanessayuenn closed this as not planned Won't fix, can't repro, duplicate, stale Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

3 participants