Skip to content

Example of Sidebar, where the selected item/section remains expanded and marked #3914

Discussion options

You must be logged in to vote

Ok figured it out. the culprit was here
https://github.com/twilio-labs/paste/blob/main/packages/paste-website/src/components/site-wrapper/sidebar/SidebarAnchor.tsx
I needed to wrap the SidebarNavigationItem with "Link", and now seems to work.
Without Link, it seems that every time i clicked a page, it was basically doing a full refresh and therefore this caused the whole thing to reset.

Unless there is anything else you want to point out to me to be aware of, we can close this

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@evanTheTerribleWarrior
Comment options

@roxanagomez
Comment options

@roxanagomez
Comment options

Comment options

You must be logged in to vote
1 reply
@evanTheTerribleWarrior
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by nkrantz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants