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]: Controls is not updating Canvas story if they're in the same mdx. #27205

Closed
jertfelt opened this issue May 20, 2024 · 1 comment
Closed

Comments

@jertfelt
Copy link

Describe the bug

When I'm using Canvas (with a story) and a control on the same docs file (in this case a mdx-file) the controls changes things, but it isn't shown in the canvas:

<Canvas of={ImportedIconButton} story={{
inline: false,
}}
source={{
language: 'html',
format:"dedent",
type:"dynamic",
code:""
}}
withToolbar={true}
layout="fullscreen"
className="custom-class"/>

Reproduction link

https://github.com/jertfelt/storybook-bug/tree/main

Reproduction steps

When I want to change the different controls, I want the information shown in the docs to be changed. However, the canvas doesn't seem to import it.

System

Storybook Environment Info:
(node:27244) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)

  System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
  Binaries:
    Node: 21.7.3 - C:\Program Files\nodejs\node.EXE
    npm: 10.5.0 - C:\Program Files\nodejs\npm.CMD <----- active
  Browsers:
    Edge: Chromium (122.0.2365.120)
  npmPackages:
    @storybook/addon-a11y: ^8.1.1 => 8.1.1 
    @storybook/addon-actions: ^8.1.1 => 8.1.1 
    @storybook/addon-essentials: ^8.1.1 => 8.1.1 
    @storybook/addon-interactions: ^8.1.1 => 8.1.1 
    @storybook/addon-links: ^8.1.1 => 8.1.1 
    @storybook/addon-mdx-gfm: ^8.1.1 => 8.1.1 
    @storybook/addon-webpack5-compiler-babel: ^3.0.3 => 3.0.3  
    @storybook/blocks: ^8.1.1 => 8.1.1 
    @storybook/html: ^8.1.1 => 8.1.1 
    @storybook/html-vite: ^8.1.1 => 8.1.1 
    @storybook/manager-api: ^8.1.1 => 8.1.1 
    @storybook/preview-api: ^8.1.1 => 8.1.1 
    @storybook/test: ^8.1.1 => 8.1.1 
    @storybook/theming: ^8.1.1 => 8.1.1 
    storybook: ^8.1.1 => 8.1.1

Additional context

No response

@shilman
Copy link
Member

shilman commented May 25, 2024

This is a known limitation documented here https://storybook.js.org/docs/api/doc-block-story#inline

@shilman shilman closed this as not planned Won't fix, can't repro, duplicate, stale May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants