@trackunit/react-table 0.0.579 → 0.0.580
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 +2 -1
- package/index.esm.js +2 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -312,6 +312,7 @@ const Table = ({ rowHeight = 75, ...props }) => {
|
|
|
312
312
|
height: hasResults ? "auto" : "100%",
|
|
313
313
|
width: "100%",
|
|
314
314
|
position: "relative",
|
|
315
|
+
display: "block",
|
|
315
316
|
}, children: [jsxRuntime.jsx(reactTableBaseComponents.Thead, { className: "z-default", children: props.getHeaderGroups().map(headerGroup => (jsxRuntime.jsx(reactTableBaseComponents.Tr, { className: "flex", children: headerGroup.headers.map(header => {
|
|
316
317
|
var _a, _b, _c, _d, _e, _f;
|
|
317
318
|
const tooltipLabel = (_b = (_a = header.column.columnDef.meta) === null || _a === void 0 ? void 0 : _a.tootipLabel) !== null && _b !== void 0 ? _b : (typeof header.column.columnDef.header === "string" ? header.column.columnDef.header : "");
|
|
@@ -347,7 +348,7 @@ const Table = ({ rowHeight = 75, ...props }) => {
|
|
|
347
348
|
transform: `translateY(${virtualRow.start - index * virtualRow.size}px)`,
|
|
348
349
|
}, children: row.getVisibleCells().map(cell => {
|
|
349
350
|
var _a, _b;
|
|
350
|
-
return (jsxRuntime.jsx(reactTableBaseComponents.Td, { onClick:
|
|
351
|
+
return (jsxRuntime.jsx(reactTableBaseComponents.Td, { onClick: event => {
|
|
351
352
|
// prevent onRowClick action when clicking on a "selectable" cell with checkbox
|
|
352
353
|
if (props.selectionColId && cell.column.id === props.selectionColId) {
|
|
353
354
|
event.stopPropagation();
|
package/index.esm.js
CHANGED
|
@@ -293,6 +293,7 @@ const Table = ({ rowHeight = 75, ...props }) => {
|
|
|
293
293
|
height: hasResults ? "auto" : "100%",
|
|
294
294
|
width: "100%",
|
|
295
295
|
position: "relative",
|
|
296
|
+
display: "block",
|
|
296
297
|
}, children: [jsx(Thead, { className: "z-default", children: props.getHeaderGroups().map(headerGroup => (jsx(Tr, { className: "flex", children: headerGroup.headers.map(header => {
|
|
297
298
|
var _a, _b, _c, _d, _e, _f;
|
|
298
299
|
const tooltipLabel = (_b = (_a = header.column.columnDef.meta) === null || _a === void 0 ? void 0 : _a.tootipLabel) !== null && _b !== void 0 ? _b : (typeof header.column.columnDef.header === "string" ? header.column.columnDef.header : "");
|
|
@@ -328,7 +329,7 @@ const Table = ({ rowHeight = 75, ...props }) => {
|
|
|
328
329
|
transform: `translateY(${virtualRow.start - index * virtualRow.size}px)`,
|
|
329
330
|
}, children: row.getVisibleCells().map(cell => {
|
|
330
331
|
var _a, _b;
|
|
331
|
-
return (jsx(Td, { onClick:
|
|
332
|
+
return (jsx(Td, { onClick: event => {
|
|
332
333
|
// prevent onRowClick action when clicking on a "selectable" cell with checkbox
|
|
333
334
|
if (props.selectionColId && cell.column.id === props.selectionColId) {
|
|
334
335
|
event.stopPropagation();
|