Slab icon indicating copy to clipboard operation
Slab copied to clipboard

Clicking a tree node affects unrelated tree nodes

Open megagrump opened this issue 4 years ago • 2 comments

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.

megagrump avatar Dec 21 '21 18:12 megagrump

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 avatar Dec 21 '21 20:12 flamendless

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 avatar Dec 23 '21 02:12 flamendless