@apia/table 4.0.75 → 4.0.78
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/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -2284,7 +2284,6 @@ const NoMemoAccordionElement = ({ row, rowIndex }) => {
|
|
|
2284
2284
|
if (row.title)
|
|
2285
2285
|
return row.title;
|
|
2286
2286
|
if (Array.isArray(indexColumns)) {
|
|
2287
|
-
console.log(indexColumns);
|
|
2288
2287
|
return indexColumns.map(
|
|
2289
2288
|
(current) => (
|
|
2290
2289
|
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
@@ -2293,7 +2292,7 @@ const NoMemoAccordionElement = ({ row, rowIndex }) => {
|
|
|
2293
2292
|
).join(" | ");
|
|
2294
2293
|
}
|
|
2295
2294
|
return row.cells[0].title ?? row.cells[0].children;
|
|
2296
|
-
}, [indexColumns, row
|
|
2295
|
+
}, [indexColumns, row]);
|
|
2297
2296
|
const isSelected = useResponsiveTable(
|
|
2298
2297
|
(global) => global.responsiveTableSlice[name].allowSelection !== false ? global.responsiveTableSlice[name].selectedRows.includes(rowIndex) : void 0
|
|
2299
2298
|
);
|
|
@@ -2302,8 +2301,9 @@ const NoMemoAccordionElement = ({ row, rowIndex }) => {
|
|
|
2302
2301
|
);
|
|
2303
2302
|
const buttonProps = useMemo(() => {
|
|
2304
2303
|
const htmlTitles = [];
|
|
2304
|
+
const hasAccordionTitleColumn = columns.some((c) => c.showInAccordionTitle);
|
|
2305
2305
|
row.cells.forEach((cell, i) => {
|
|
2306
|
-
if (columns[i].showInAccordionTitle && cell.isHtml) {
|
|
2306
|
+
if (hasAccordionTitleColumn && columns[i].showInAccordionTitle && cell.isHtml || !hasAccordionTitleColumn && i === 0 && cell.isHtml) {
|
|
2307
2307
|
htmlTitles.push(true);
|
|
2308
2308
|
}
|
|
2309
2309
|
});
|