Skip to content

Commit 88a929b

Browse files
authored
fix(BulkSelect): Fix BulkSelect being checked when there are no rows (#355)
1 parent 2d86523 commit 88a929b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/module/src/BulkSelect/BulkSelect.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export const BulkSelect: React.FC<BulkSelectProps> = ({
113113
(isDataPaginated && pagePartiallySelected) ||
114114
(!isDataPaginated && selectedCount > 0 && selectedCount < totalCount)
115115
? null
116-
: pageSelected || selectedCount === totalCount
116+
: pageSelected || (selectedCount === totalCount && totalCount > 0)
117117
}
118118
onChange={(checked) => onSelect?.(!checked || checked === null ? noneOption : allOption)}
119119
{...menuToggleCheckboxProps}

0 commit comments

Comments
 (0)