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] exporting Default from a story with atleast one more export breaks sidebar active items #73

Open
jrson83 opened this issue Sep 22, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@jrson83
Copy link
Collaborator

jrson83 commented Sep 22, 2023

Describe the bug

If you export const Default from a story where at least one other story is exported, the active item status in the sidebar is displayed incorrectly when you click on the Default story. The active CSS class is not only applied to the clicked link, but all items of the sidebar.

2023-09-22_16h13_44

Reproduction

  1. Clone the repo
  2. Run pnpm i
  3. Open buttons.stories.tsx in the docs package
  4. On line 37 rename WithComponentProps to Default
  5. Run pnpm dev
  6. See the issue on the sidebar

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
@itsjavi itsjavi added the bug Something isn't working label Sep 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants