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] args defined in exports are not inherited by other stories without defining decorators #76

Closed
jrson83 opened this issue Sep 25, 2023 · 0 comments

Comments

@jrson83
Copy link
Collaborator

jrson83 commented Sep 25, 2023

Describe the bug

When defining args in a *.stories.tsx default export, but not defining decorators, the args are not applied to the default export and are not inherited by other stories in the file.

When defining args in any stories export, but not defining any decorators, either in default export, or the stories export, the args are not applied to the exported story itself.

Reproduction

  1. Clone the repo
  2. Run pnpm i
  3. Open buttons.stories.tsx in the docs package
  4. Remove all decorators defined in all stories
  5. Run pnpm dev
  6. See the default args children are not passed to the component story

Environment

  • OS with version: Windows 11
  • Browser with version: Firefox 117.0.1 & Chrome 119.0.6023.0 canary
  • JS Runtime with version: NodeJS v20.2.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

1 participant