@linzjs/step-ag-grid 27.3.0 → 27.3.1

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@linzjs/step-ag-grid",
3
3
  "repository": "github:linz/step-ag-grid.git",
4
4
  "license": "MIT",
5
- "version": "27.3.0",
5
+ "version": "27.3.1",
6
6
  "keywords": [
7
7
  "aggrid",
8
8
  "ag-grid",
@@ -750,7 +750,10 @@ export const Grid = <TData extends GridBaseRow = GridBaseRow>({
750
750
  }
751
751
  return false;
752
752
  },
753
- onCellClicked: clickInputWhenContainingCellClicked,
753
+ onCellClicked:
754
+ params.enableSelectionWithoutKeys || params.enableClickSelection
755
+ ? undefined
756
+ : clickInputWhenContainingCellClicked,
754
757
  }}
755
758
  />
756
759
  </div>
@@ -28,9 +28,11 @@ export const clickInputWhenContainingCellClicked = (params: CellClickedEvent) =>
28
28
  if (!cell) return;
29
29
 
30
30
  const input = cell.querySelector('input, button');
31
- if (!input) return;
31
+ if (!input) {
32
+ return;
33
+ }
32
34
 
33
- input?.dispatchEvent(event);
35
+ input.dispatchEvent(event);
34
36
  };
35
37
 
36
38
  setTimeout(clickInput, 20);