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

frontend: Fix memoization for Head cell when selecting all rows #2678

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

sniok
Copy link
Contributor

@sniok sniok commented Dec 13, 2024

Fixes #2669

This bug only occurs when the table has more than one page.

Steps to reproduce

  1. Go to the page with a bunch of items (>1 page)
  2. Select one item
  3. Then click on select all checkbox

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Dec 13, 2024
@sniok sniok added bug Something isn't working frontend Issues related to the frontend and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Dec 13, 2024
@sniok sniok requested a review from a team December 13, 2024 11:00
@skoeva
Copy link
Contributor

skoeva commented Dec 13, 2024

Have you tested the changes? I switched to this feature branch and seems to me that the table selection acts functionally identical to the main branch, which is the same as in the MRT docs (correct me if I'm wrong but is there an issue to fix here?)

@sniok
Copy link
Contributor Author

sniok commented Dec 16, 2024

@skoeva

Currently when you select one item, the top "select all" checkbox has a "-" icon as expected.
image
But then if you click the "select all" checkbox it selects everything but the icon stays the same, but should turn into a check
image
And then clicking it again should deselect everything but nothing happens.
So this PR fixes that

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Dec 16, 2024
Copy link
Contributor

@skoeva skoeva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works as expected 🎉

@sniok sniok merged commit 372ff2c into main Dec 16, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend Issues related to the frontend size:S This PR changes 10-29 lines, ignoring generated files.
Projects
Development

Successfully merging this pull request may close these issues.

Table select all from partial not working as expected
2 participants