Skip to content
This repository has been archived by the owner on Nov 5, 2020. It is now read-only.

'Failed to get default value' with Function type prop and default #126

Closed
jackysee opened this issue Feb 3, 2020 · 1 comment · Fixed by #127
Closed

'Failed to get default value' with Function type prop and default #126

jackysee opened this issue Feb 3, 2020 · 1 comment · Fixed by #127
Labels

Comments

@jackysee
Copy link

jackysee commented Feb 3, 2020

For prop like this:

getLabel: { type: Function, default: item => item.desp }

The addon would try to run the default function and result in prop table:

image

while it should print the function implementation itself.

Versions

  • storybook-addon-vue-info: 1.4.1
  • @storybook/vue: 5.3.10
@pocka
Copy link
Owner

pocka commented Feb 23, 2020

Fixed in v1.4.2.

Please use an issue template.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants