grep-components 1.23.0 → 1.24.0-GREPF-2082.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/dist/index.js CHANGED
@@ -3751,9 +3751,13 @@ var GrepTable = function (_a) {
3751
3751
  var clickableRows = !!onRowClick;
3752
3752
  var disabled = isRowDisabled && isRowDisabled(row);
3753
3753
  var rowIndex = index + currentPage * rowsPerPage;
3754
- return (React__default.createElement(GrepTableRow, { key: rowIndex, "data-index": rowIndex, tabIndex: rowTabIndex !== null && rowTabIndex !== void 0 ? rowTabIndex : 0, hover: clickableRows, selected: rowIndex === selectedRowIndex, clickable: clickableRows, onMouseDown: function (_a) {
3755
- var currentTarget = _a.currentTarget;
3756
- setSelectedElement(currentTarget);
3754
+ return (React__default.createElement(GrepTableRow, { key: rowIndex, "data-index": rowIndex, tabIndex: rowTabIndex !== null && rowTabIndex !== void 0 ? rowTabIndex : 0, hover: clickableRows, selected: rowIndex === selectedRowIndex, clickable: clickableRows, onMouseDown: function (e) {
3755
+ if (e.target.type === 'checkbox') {
3756
+ e.preventDefault();
3757
+ e.stopPropagation();
3758
+ return;
3759
+ }
3760
+ setSelectedElement(e.currentTarget);
3757
3761
  if (!disableSelectOnClick) {
3758
3762
  _handleRowClick(row);
3759
3763
  }