Skip to content

Initially tree is expanded but isExpanded() is set to false leading to a minor bug #17

@DrHowdyDoo

Description

@DrHowdyDoo

Describe the bug
When the tree is shown for the first time, it is all expanded but the treeNode class has a false set in isExpanded variable, because of this when you tap on the node it expands again replicating it's childrens.

To Reproduce
Steps to reproduce the behavior:

  1. Just create a Tree with atleast 3 child'
  2. Expand the First Node
  3. you will see duplicate child node

Expected behavior
Either the tree should be collapsed from the start or isExpanded should be set to true.

Screenshots
Screenshot_20240315-171009(marked)

Screenshot_20240315-171001

Smartphone (please complete the following information):

  • Device: Nothing Phone 1
  • OS: Android (Nothing OS)
  • Version: 14 (2.5.3)

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions