@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
package/src/components/Grid.tsx
CHANGED
|
@@ -750,7 +750,10 @@ export const Grid = <TData extends GridBaseRow = GridBaseRow>({
|
|
|
750
750
|
}
|
|
751
751
|
return false;
|
|
752
752
|
},
|
|
753
|
-
onCellClicked:
|
|
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)
|
|
31
|
+
if (!input) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
32
34
|
|
|
33
|
-
input
|
|
35
|
+
input.dispatchEvent(event);
|
|
34
36
|
};
|
|
35
37
|
|
|
36
38
|
setTimeout(clickInput, 20);
|