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

Tree.Expanded is not respected #1153

Open
kindermannhubert opened this issue Feb 4, 2023 · 1 comment
Open

Tree.Expanded is not respected #1153

kindermannhubert opened this issue Feb 4, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@kindermannhubert
Copy link

kindermannhubert commented Feb 4, 2023

Information

  • OS: Windows
  • Version: 0.46.1-preview.0.5
  • Terminal: cmd.exe

Describe the bug
The following code:

var root = new Tree("root") { Expanded = false };
root.AddNode("node1");
root.AddNode("node2");
AnsiConsole.Render(root);

has the same behavior as if Expanded is set to true (which is default).

To Reproduce
Use provided code.

Expected behavior
Nodes node1 and node2 should not be rendered. Only root should be visible.

Screenshots
image


Please upvote 👍 this issue if you are interested in it.

@kindermannhubert kindermannhubert added bug Something isn't working needs triage labels Feb 4, 2023
@patriksvensson
Copy link
Contributor

Sounds like a bug to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo 🕑
Development

No branches or pull requests

2 participants