Storybook: Vue stories don't work with mixins

Created on 5 Apr 2019  路  4Comments  路  Source: storybookjs/storybook

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to http://jivl-mixin-storybook-bug.162.243.131.170.nip.io/?path=/story/charts-stacked-column-chart--with-toolbox
  2. Click on Show Toolbox
  3. See error

Expected behavior
Show Toolbox should show a toolbox on top of the chart, that property comes from a mixin, it seems to me that the mixin prevents the property from receiving the values correctly, see attached screenshot

Screenshots
Screen Shot 2019-04-04 at 4 04 11 PM

Code snippets
https://gitlab.com/gitlab-org/gitlab-ui/merge_requests/231

System:

  • OS: macOS
  • Device: Macbook Pro 15 inch 2018
  • Browser: chrome, firefox, safari
  • Framework: vue
  • Addons: storybook/[email protected]
  • Version: 5.0.3
vue inactive question / support

Most helpful comment

knobs values must be passed in as prop default values. (this was a change done somewhere in sb 4.x, but not very well documented):

add('My Story', () => ({
  props: {
    showToolbar: { default: boolean('Show Toolbar', false) }
  }
}))

All 4 comments

knobs values must be passed in as prop default values. (this was a change done somewhere in sb 4.x, but not very well documented):

add('My Story', () => ({
  props: {
    showToolbar: { default: boolean('Show Toolbar', false) }
  }
}))

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!

Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shilman picture shilman  路  3Comments

xogeny picture xogeny  路  3Comments

dnlsandiego picture dnlsandiego  路  3Comments

zvictor picture zvictor  路  3Comments

ZigGreen picture ZigGreen  路  3Comments