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]: "No code available" with conditional controls Storybook HTML #22080

Closed
Manours opened this issue Apr 13, 2023 · 1 comment
Closed

[Bug]: "No code available" with conditional controls Storybook HTML #22080

Manours opened this issue Apr 13, 2023 · 1 comment

Comments

@Manours
Copy link

Manours commented Apr 13, 2023

Describe the bug

In the HTML version of Storybook, when I try to use conditional controls, the "Show code" button became disabled and show "No code available".

I just add an advanced control to show all controls except label from the "HTML Webpack" starter.

You can reproduce it with Stackblitz in Button › Docs and just toggle the control named advanced.

To Reproduce

https://stackblitz.com/edit/github-bmuf2p?file=src%2Fstories%2FButton.stories.js&preset=node

System

Environment Info:

  System:
    OS: macOS 13.2.1
    CPU: (8) x64 Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz
  Binaries:
    Node: 16.15.0 - ~/.nvm/versions/node/v16.15.0/bin/node
    npm: 8.5.5 - ~/.nvm/versions/node/v16.15.0/bin/npm
  Browsers:
    Chrome: 112.0.5615.49
    Firefox: 111.0.1
    Safari: 16.3
  npmPackages:
    @storybook/addon-essentials: ^7.0.4 => 7.0.4 
    @storybook/addon-interactions: ^7.0.4 => 7.0.4 
    @storybook/addon-links: ^7.0.4 => 7.0.4 
    @storybook/blocks: ^7.0.4 => 7.0.4 
    @storybook/html: ^7.0.4 => 7.0.4 
    @storybook/html-webpack5: ^7.0.4 => 7.0.4 
    @storybook/testing-library: ^0.0.14-next.2 => 0.0.14-next.2 

Additional context

No response

@shilman
Copy link
Member

shilman commented Apr 25, 2023

Probable dupe to #22099

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

2 participants