@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.
@@ -665,9 +665,10 @@ const clickInputWhenContainingCellClicked = (params) => {
665
665
  if (!cell)
666
666
  return;
667
667
  const input = cell.querySelector('input, button');
668
- if (!input)
668
+ if (!input) {
669
669
  return;
670
- input?.dispatchEvent(event);
670
+ }
671
+ input.dispatchEvent(event);
671
672
  };
672
673
  setTimeout(clickInput, 20);
673
674
  };
@@ -3218,7 +3219,9 @@ const Grid = ({ 'data-testid': dataTestId, defaultPostSort = true, rowSelection
3218
3219
  }
3219
3220
  return false;
3220
3221
  },
3221
- onCellClicked: clickInputWhenContainingCellClicked,
3222
+ onCellClicked: params.enableSelectionWithoutKeys || params.enableClickSelection
3223
+ ? undefined
3224
+ : clickInputWhenContainingCellClicked,
3222
3225
  } }) })] }));
3223
3226
  };
3224
3227