Skip to content

Function getIsSomeSelected() return false when has one child #5800

Description

@wellingtonngallo

TanStack Table version

8.20.5

Framework/Library version

React 17.0.2

Describe the bug and the steps to reproduce it

Description bug

When a parent has only one node and this node is selected, function getIsSomeSelected() return all as false

Additional

See that in my object, subRow has only one item, the problem only occurs in this case. If you add one more item totaling 2 children, it works correctly

Your Minimal, Reproducible Example - (Sandbox Highly Recommended)

https://codesandbox.io/p/devbox/clhnxy?migrateFrom=yldcnv

Screenshots or Videos (Optional)

Image

Do you intend to try to help solve this bug with your own PR?

None

Terms & Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions