Skip to content

Tree crashes, when wrong Id is in the selectedIds or expandedIds #191

@urrri-redis

Description

@urrri-redis

Describe the bug
Tree is used in controlled mode for selectedIds.
User selects some Ids.
Then user searches for some text (filtering scenario) and some of selected items are disappeared from the list.
that means some of selected Ids dont exist in the data.
Tree crashes.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Checkbox with controlled selectedIds or to Basic with controlled expandable node
  2. Add non-existing id (e.g. 55) into the ids input and click on "Set" button
  3. See crash

Expected behavior
Tree should ignore wrong Ids.
In best case in dev mode it should log wrong ids (better in one line).

Screenshots
image

Desktop (please complete the following information):

  • OS: [Win 10]
  • Browser [chrome]
  • Version [126]

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededwontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions