Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getIsSomeRowsSelected returns false when all rows selected #412

Open
1 task done
kadirgun opened this issue Sep 18, 2024 · 1 comment
Open
1 task done

getIsSomeRowsSelected returns false when all rows selected #412

kadirgun opened this issue Sep 18, 2024 · 1 comment
Labels
V2 Issue with MRT V2 wontfix This will not be worked on

Comments

@kadirgun
Copy link

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.
@alessandrojcm
Copy link
Collaborator

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

@alessandrojcm alessandrojcm added wontfix This will not be worked on V2 Issue with MRT V2 labels Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
V2 Issue with MRT V2 wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants