@m4l/components 0.0.27 → 0.0.28
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.
|
@@ -886,6 +886,11 @@ function Table(props) {
|
|
|
886
886
|
};
|
|
887
887
|
const onRowClick = (row) => {
|
|
888
888
|
if (!isMultipleSelect) {
|
|
889
|
+
if (selectedRows.entries().next().value) {
|
|
890
|
+
if (selectedRows.entries().next().value[1] === props.rowKeyGetter(row)) {
|
|
891
|
+
return;
|
|
892
|
+
}
|
|
893
|
+
}
|
|
889
894
|
const mySet = /* @__PURE__ */ new Set([props.rowKeyGetter(row)]);
|
|
890
895
|
setSelectedRows(mySet);
|
|
891
896
|
updateExternal(mySet);
|