Skip to content

8.3.1 breaks getIsSomeRowsSelected behaviour #4212

Description

@EvHaus

Describe the bug

After upgrading from 8.3.0 to 8.3.1 I've noticed that table.getIsSomeRowsSelected() will return true even if no rows are selected. Rolling back to 8.3.0 makes the issue go away. 8.3.2 also has this bug.

I suspect the problem is caused by this commit (620ba46) but not sure why exactly.

Your minimal, reproducible example

https://tanstack.com/table/v8/docs/examples/react/row-selection

Steps to reproduce

Check out the row selection example page: https://tanstack.com/table/v8/docs/examples/react/row-selection Note how the checkbox in the header has the indeterminate state set to true even when nothing is selected yet.

Expected behavior

If no rows are selected, getIsSomeRowsSelected() should return false.

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

macOS, Chrome

react-table version

8.3.1

TypeScript version

4.7.4

Additional context

No response

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