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

Clicking a tree node affects unrelated tree nodes #112

Open
megagrump opened this issue Dec 21, 2021 · 2 comments
Open

Clicking a tree node affects unrelated tree nodes #112

megagrump opened this issue Dec 21, 2021 · 2 comments
Labels
bug Something isn't working v1.0.0

Comments

@megagrump
Copy link
Contributor

megagrump commented Dec 21, 2021

In the Slab demo: Click Debug/DrawCommands, then expand all top level categories in the window:

image

Click on one of the nodes named Channels:

image

Note how all Channels child nodes are now expanded, not just the one that was clicked. Clicking any of them afterwards will collapse all of them.

@flamendless
Copy link
Owner

Hmm i think this is due to them having the same id "Channels" though i expected that a child node should have a different internal key from push/pop tree id 🤔 i thought slab already does tree id handling

@flamendless
Copy link
Owner

I think a push/pop id internal to Tree would be ideal to avoid conflicting IDs if nested. I'll wait for you to finish the changes in Tree module before I implement it

@flamendless flamendless added bug Something isn't working v1.0.0 labels Dec 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v1.0.0
Projects
None yet
Development

No branches or pull requests

2 participants