Skip to content

Sidebar state fix #106

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Sidebar state fix #106

wants to merge 2 commits into from

Conversation

firebed
Copy link

@firebed firebed commented Apr 13, 2025

In shadcn-vue docs they mention that SIDEBAR_COOKIE_NAME is sidebar_state but in the actual code in sidebar/utils.ts it's sidebar:state (with semicolon)

Without this fix, the sidebar looses its state everytime the user navigates to a different page or refreshes the page.

@tnylea
Copy link
Contributor

tnylea commented Apr 14, 2025

Thanks! Good catch @firebed 💪

@tnylea tnylea added the Approved Approved for merge label Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved Approved for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants