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

Paginated Index Table Bulk Actions Selects All Rows by Default #11786

Closed
thelaughing-man opened this issue Mar 26, 2024 · 1 comment
Closed
Labels
Bug Something is broken and not working as intended in the system. no-issue-activity untriaged

Comments

@thelaughing-man
Copy link

Summary

Using an IndexTable with bulk actions and pagination, the default behavior is to select all rows instead of the current page's rows. The documentation does not discuss select all options. There is a SelectionType listed under handleSelectionChange from useIndexResourceState but no reference on how to use it. How does one make the default behavior of select all on a paginated index table only select the current page's rows?

Expected behavior

When clicking the select all button on a paginated index table, it should only select the current page's rows. The text already shows up to select all rows in the table so it is implying you've only selected the current page. Or document how to use the SelectionType to change the default behavior.

Actual behavior

Clicking the checkbox selects all items in the list and says click here to select all.

image

Steps to reproduce

Any paginated indextable with bulk actions.

Are you using React components?

Yes

Polaris version number

5.10.2

Browser

Chrome 122.0.6261.113

Device

Dell Laptop

@thelaughing-man thelaughing-man added Bug Something is broken and not working as intended in the system. untriaged labels Mar 26, 2024
Copy link
Contributor

Hi! We noticed there hasn’t been activity on this issue in a while. After 30 days, it will close automatically.

If it’s still relevant, or you have updates, comment and let us know. And don’t worry, you can always re-open later if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken and not working as intended in the system. no-issue-activity untriaged
Projects
None yet
Development

No branches or pull requests

1 participant