Skip to content

Commit

Permalink
Ensure page selection action triggers 'all' selection if page selecti…
Browse files Browse the repository at this point in the history
…on will select all
  • Loading branch information
chloerice committed Oct 11, 2024
1 parent b77cd47 commit 4915f87
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion polaris-react/src/components/BulkActions/BulkActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,11 @@ export const BulkActions = ({
const selectAllOnPageItem = {
content: selectAllOnPageContent,
onAction: handleBulkSelection(
'page',
pageCount &&
typeof selectedItemsCount === 'number' &&
pageCount + selectedItemsCount === itemCount
? 'all'
: 'page',
!(
selectedItemsCount === pageCount ||
selectedItemsCount === 'All' ||
Expand Down

0 comments on commit 4915f87

Please sign in to comment.