@agilant/toga-blox 1.0.182 → 1.0.183
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.
|
@@ -38,6 +38,8 @@ const TableRow = ({ row, prepareRow, activeIndex, activeRowColor = "bg-pink-100"
|
|
|
38
38
|
// Destructure 'key' into _ignoredKey to discard it (React doesn't allow spreading 'key')
|
|
39
39
|
// Collect all remaining props into 'safeRowProps' using the rest operator (...)
|
|
40
40
|
const { key: _ignoredKey, ...safeRowProps } = Object.assign({}, rawRowProps); // Tell TypeScript to treat rawRowProps as an object with a key and other props
|
|
41
|
+
console.log("🚀 row.getRowProps():", row.getRowProps?.());
|
|
42
|
+
console.log("safeRowProps after removing key:", safeRowProps);
|
|
41
43
|
return (_jsxs(Fragment, { children: [_jsx("tr", { "data-testid": "table-row", className: `border-b border-b-navy-200 ${rowHoverClasses} ${rowClasses} ${rowClassNames}`, onClick: handleRowClick, ...safeRowProps, children: row.cells.map((cell, idx) => {
|
|
42
44
|
const cellKey = `${rowUuid ?? "no-uuid"}-${cell.column.id}`;
|
|
43
45
|
return (_jsx(TableCell, { cell: cell, isLastCell: idx === row.cells.length - 1, hasInfiniteScroll: hasInfiniteScroll, rowUuid: rowUuid, expanded: expandedCells[cellKey] ?? false, onToggle: () => toggleCell(cellKey), linkText: linkText }, cellKey));
|