Skip to content

[TreeView] Incorrect node selection while filtering #4451

Open

Description

Description

The TreeView automatically selects nodes when clearing filter value.

Steps To Reproduce

  1. Filter by 'Bed Linen' value
  2. Select Occasional Furniture node to select all Bed Linen results
  3. Clear the filter value and expand the Occasional Furniture node.
  4. Notice that Curtains & Blinds node is also selected.
    https://stackblitz.com/edit/angular-gdvnye-u4kbke

Screenshots or video

Screen.Recording.2024-11-06.at.11.50.00.mov

Actual Behavior

Curtains & Blinds node is selected because the parent node state is checked while the filter is applied.

Expected Behavior

The parent node state should be indeterminate when the filter is removed and the Curtains & Blinds node should remain unchecked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions