Skip to content

getIsSomeRowsSelected returns false when all rows selected #412

Open

Description

@kadirgun

mantine-react-table version

2.0.0-beta.6

react & react-dom versions

18.3.1

Describe the bug and the steps to reproduce it

getIsSomeRowsSelected returns false if all rows are selected.

Minimal, Reproducible Example - (Optional, but Recommended)

renderTopToolbarCustomActions: ({ table }) => {
      const handleOpenTerminal = () => {
        console.log(table.getIsSomeRowsSelected());
        console.log(table.getIsAllRowsSelected());
      };

      return (
        <Group>
          <ActionIcon onClick={handleOpenTerminal}>
            <IconTerminal size={16} />
          </ActionIcon>
        </Group>
      );
    }

Select all rows and click on the button.

getIsSomeRowsSelected false
getIsAllRowsSelected true

If all rows are selected, getIsSomeRowsSelected must still be true.

Screenshots or Videos (Optional)

No response

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

Maybe, I'll investigate and start debugging

Terms

  • I understand that if my bug cannot be reliably reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

Activity

  1. alessandrojcm commented on Nov 4, 2024

    @alessandrojcm
    Collaborator

    This is a bug with TanStack Table TanStack/table#5740

  2. added
    wontfix
    V2
    on Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    V2wontfix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions