@trackunit/react-table 0.0.434 → 0.0.436

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs.js CHANGED
@@ -328,7 +328,7 @@ const Table = (_a) => {
328
328
  else {
329
329
  return (jsxRuntime.jsx(reactTableBaseComponents.Tr, { className: cvaTableRow({
330
330
  showPointer: !!props.onRowClick || row.getCanSelect(),
331
- isSelected: row.getIsSelected(),
331
+ isSelected: props.options.enableRowSelection && row.getIsSelected(),
332
332
  }), dataTestId: `table-body-row-${virtualRow.index}`, layout: "flex", onClick: () => {
333
333
  if (props.onRowClick) {
334
334
  props.onRowClick(row);
package/index.esm.js CHANGED
@@ -303,7 +303,7 @@ const Table = (_a) => {
303
303
  else {
304
304
  return (jsx(Tr, { className: cvaTableRow({
305
305
  showPointer: !!props.onRowClick || row.getCanSelect(),
306
- isSelected: row.getIsSelected(),
306
+ isSelected: props.options.enableRowSelection && row.getIsSelected(),
307
307
  }), dataTestId: `table-body-row-${virtualRow.index}`, layout: "flex", onClick: () => {
308
308
  if (props.onRowClick) {
309
309
  props.onRowClick(row);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-table",
3
- "version": "0.0.434",
3
+ "version": "0.0.436",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {