Skip to content

Tree nodes default to collapsed state, making navigation easier#6

Open
ojsrb wants to merge 1 commit into2702rebels:mainfrom
ojsrb:main
Open

Tree nodes default to collapsed state, making navigation easier#6
ojsrb wants to merge 1 commit into2702rebels:mainfrom
ojsrb:main

Conversation

@ojsrb
Copy link

@ojsrb ojsrb commented Feb 5, 2026

Changed the tree.tsx component to make the drop downs default to collapsed, making it easier to find the variable you are looking for without scrolling very far.

Screenshot 2026-02-05 at 17 54 29

@illinar
Copy link
Contributor

illinar commented Feb 7, 2026

I support having an option to collapse the tree by default, but this has to be configurable at the component level.
I suggest adding a property to control the behavior:

/** Indicates that nodes are collapsed by default. */
collapsedByDefault?: boolean;

That said, I don't think it is sufficient, since searching for the node doesn't automatically expand matching branches, resulting in somewhat awkward UX. I don't currently see a universally acceptable approach though, each solution requires some sort of compromise.

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

Successfully merging this pull request may close these issues.

2 participants