From 8997cfadd49431864bf5cf0f35ca14b40b0be024 Mon Sep 17 00:00:00 2001 From: JJ Kim Date: Mon, 11 Apr 2022 13:23:47 -0700 Subject: [PATCH] feat(table): read selectable prop from each row by default --- packages/sage-react/lib/Table/Table.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sage-react/lib/Table/Table.jsx b/packages/sage-react/lib/Table/Table.jsx index d50be50c49..b159b60b39 100644 --- a/packages/sage-react/lib/Table/Table.jsx +++ b/packages/sage-react/lib/Table/Table.jsx @@ -278,7 +278,7 @@ export const Table = ({ cells={cells} schema={schema} selected={selfSelectedRows === SELECTION_TYPES.ALL || selfSelectedRows.includes(rowId)} - selectable={selectable} + selectable={!!(row.selectable || selectable)} onSelect={onSelectRow} /> );