@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);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
3
  "private": false,
4
- "version": "0.0.27",
4
+ "version": "0.0.28",
5
5
  "license": "UNLICENSED",
6
6
  "scripts": {
7
7
  "dev": "vite",