From 6255ba8f305d911e602a4434c80d21ef9a364384 Mon Sep 17 00:00:00 2001 From: Joel 'Aaron' Cohen Date: Tue, 5 Nov 2024 12:50:28 -0500 Subject: [PATCH] Ensure isSubRowSelected returns true when all children aren't selectable but a grandchild is --- packages/table-core/src/features/RowSelection.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/table-core/src/features/RowSelection.ts b/packages/table-core/src/features/RowSelection.ts index e591951d70..e5a91d392e 100644 --- a/packages/table-core/src/features/RowSelection.ts +++ b/packages/table-core/src/features/RowSelection.ts @@ -657,9 +657,11 @@ export function isSubRowSelected( const subRowChildrenSelected = isSubRowSelected(subRow, selection, table) if (subRowChildrenSelected === 'all') { someSelected = true + someSelectable = true } else if (subRowChildrenSelected === 'some') { someSelected = true allChildrenSelected = false + someSelectable = true } else { allChildrenSelected = false }