@omniumretail/component-library 1.3.19 → 1.3.20
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.
|
@@ -24860,8 +24860,7 @@ const ResponsiveTable = (props) => {
|
|
|
24860
24860
|
renderSelectedCell,
|
|
24861
24861
|
useOrderedCellSelection = true,
|
|
24862
24862
|
initialSelectedCells,
|
|
24863
|
-
selectedCellColor
|
|
24864
|
-
initialCellKeys
|
|
24863
|
+
selectedCellColor
|
|
24865
24864
|
} = props;
|
|
24866
24865
|
const [customFilters, setCustomFilters] = useState([]);
|
|
24867
24866
|
const [customColumns, setCustomColumns] = useState([]);
|
|
@@ -24890,8 +24889,6 @@ const ResponsiveTable = (props) => {
|
|
|
24890
24889
|
};
|
|
24891
24890
|
const handleCellClick = (record, columnKey, value) => {
|
|
24892
24891
|
if (!enableCellSelection || !selectableColumns?.includes(columnKey)) return;
|
|
24893
|
-
const cellKey = `${record[rowKeyValue]}-${columnKey}`;
|
|
24894
|
-
initialCellKeys?.has(cellKey);
|
|
24895
24892
|
const isAlreadySelected = selectedCells.some(
|
|
24896
24893
|
(cell) => cell.rowKey === record[rowKeyValue] && cell.columnKey === columnKey
|
|
24897
24894
|
);
|