You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by lanzosuarez November 26, 2024
Hi everyone,
I've noticed an inconsistency with the indeterminate state behavior in the Tree component. The issue manifests differently depending on the selection order:
When selecting a child first:
Parent node remains unchecked, doesn't enter indeterminate state
When selecting parent first, then unselecting a child:
Parent correctly enters indeterminate state
Is this intentional?
Expected Behavior:
The parent node should enter indeterminate state in both scenarios when some (but not all) children are selected, regardless of selection order.
Has anyone encountered this issue or have insights on how to achieve consistent indeterminate state behavior?
Let me know if you need any clarification or additional information about my setup.
The text was updated successfully, but these errors were encountered:
lanzosuarez
changed the title
Tree Component: Inconsistent Parent Node Indeterminate State Behavior
[Bug] Tree Component: Inconsistent Parent Node Indeterminate State Behavior
Nov 25, 2024
This is intended behavior. However I think we can implement a bubbleSelect props to allow selecting children will set parent item to indeterminate or checked 😁
Discussed in #1457
Originally posted by lanzosuarez November 26, 2024
Hi everyone,
I've noticed an inconsistency with the indeterminate state behavior in the Tree component. The issue manifests differently depending on the selection order:
When selecting a child first:
Parent node remains unchecked, doesn't enter indeterminate state
When selecting parent first, then unselecting a child:
Parent correctly enters indeterminate state
Is this intentional?
Expected Behavior:
The parent node should enter indeterminate state in both scenarios when some (but not all) children are selected, regardless of selection order.
Has anyone encountered this issue or have insights on how to achieve consistent indeterminate state behavior?
Let me know if you need any clarification or additional information about my setup.
Here's my code:
The text was updated successfully, but these errors were encountered: