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]: Incorrect code snippet when using v-bind to bind args inside a render() of a story. #23989

Open
vinodkola1337 opened this issue Aug 29, 2023 · 0 comments

Comments

@vinodkola1337
Copy link

Describe the bug

Hello!

I am trying to use render() to write custom template for my story. I am binding my args using 'v-bind' inside my template. However, when the show code renders, it still shows the 'v-bind' in the code snippet, which is wrong.

When I copy the show code and use it in application, it won't work. For example, let's say I am binding 'label' prop of value 'test'. But the rendered code snippet displays it as 'v-bind:label=''test"'. But there isn't a const/val defined for test.

Screenshot:
image

To Reproduce

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

System

System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 Intel(R) Core(TM) i7-10610U CPU @ 1.80GHz
  Binaries:
    Node: 18.17.0 - C:\Program Files\nodejs\node.EXE
    npm: 9.6.7 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (116.0.1938.62)
  npmPackages:
    @storybook/addon-a11y: ^7.3.2 => 7.3.2
    @storybook/addon-designs: ^7.0.1 => 7.0.1
    @storybook/addon-essentials: ^7.1.0 => 7.2.1
    @storybook/addon-interactions: ^7.1.0 => 7.2.1
    @storybook/addon-links: ^7.1.0 => 7.2.1
    @storybook/blocks: ^7.1.0 => 7.2.1
    @storybook/testing-library: ^0.2.0 => 0.2.0
    @storybook/vue3: ^7.1.0 => 7.2.1
    @storybook/vue3-vite: ^7.1.0 => 7.2.1

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant