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]: Component docs page resets when package manager tabs are switched in command snippet box #6101

Open
2 tasks done
ptvty opened this issue Dec 17, 2024 · 1 comment · May be fixed by #6108
Open
2 tasks done
Labels
bug Something isn't working

Comments

@ptvty
Copy link

ptvty commented Dec 17, 2024

Describe the bug

In the docs website there are command snippet boxes with tabs to select desired package manager (pnpm | npm | yran | bun).

Clicking any of these tabs will resets the entire documentation component instead of re-rendering the snippets only.

Affected component/components

Any

How to reproduce

  1. Go to doc page for any component. e.g. https://ui.shadcn.com/docs/components/label
  2. Scroll to "Installation" section
  3. Switch to "Manual" tab in (CLI | Manual) tab bar
  4. In the command box switch the package manager
  5. You are now unexpectedly in the "CLI" tab instead of the "Manual" tab you chose

Codesandbox/StackBlitz link

https://ui.shadcn.com/docs/components/label

Logs

No response

System Info

Chromium 131

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues
@ptvty ptvty added the bug Something isn't working label Dec 17, 2024
@ptvty ptvty linked a pull request Dec 17, 2024 that will close this issue
@elijahnikov
Copy link

left you a comment on the pr!

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
None yet
Development

Successfully merging a pull request may close this issue.

2 participants