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

Keep track of what branch was expanded #98

Open
lapwil opened this issue May 16, 2023 · 0 comments
Open

Keep track of what branch was expanded #98

lapwil opened this issue May 16, 2023 · 0 comments

Comments

@lapwil
Copy link

lapwil commented May 16, 2023

Hello,

I didn't find an issue like mine and couldn't find help in the repo so I'm asking here.

I need to track what part of the tree was expanded, so that as the user goes back and forth on the index, the tree can keep the same state.

i.g

  • user expands branch A
  • user goes to the show page of branch A, item 2
  • user goes back to index and branch A is already expanded

I don't recall seeing a method that allows us to do it right now unless i'm missing something ?

My first idea would be to do it with JS and use session tokens to manipulate css classes maybe, but maybe there is something better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant