diff --git a/polaris-react/src/components/BulkActions/BulkActions.tsx b/polaris-react/src/components/BulkActions/BulkActions.tsx index 8d7b56cf11b..f6f241c5177 100644 --- a/polaris-react/src/components/BulkActions/BulkActions.tsx +++ b/polaris-react/src/components/BulkActions/BulkActions.tsx @@ -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' ||