carbon-react 104.23.0 → 104.23.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.
@@ -37,19 +37,30 @@ const FlatTableCheckbox = ({
37
37
  }
38
38
  }, [reportCellWidth, cellIndex]);
39
39
  const dataElement = `flat-table-checkbox-${as === "td" ? "cell" : "header"}`;
40
+
41
+ const handleClick = event => {
42
+ event.stopPropagation();
43
+ if (onClick) onClick(event);
44
+ };
45
+
46
+ const handleKeyDown = event => {
47
+ event.stopPropagation();
48
+ };
49
+
40
50
  return /*#__PURE__*/_react.default.createElement(_flatTableCheckbox.default, {
41
51
  ref: ref,
42
52
  makeCellSticky: !!reportCellWidth,
43
53
  leftPosition: leftPosition || 0,
44
54
  "data-element": dataElement,
45
- as: as,
46
- onClick: onClick
55
+ as: as
47
56
  }, selectable && /*#__PURE__*/_react.default.createElement(_checkbox.Checkbox, {
48
57
  checked: checked,
49
58
  onChange: onChange,
50
59
  name: "flat-table-checkbox",
51
60
  mb: 0,
52
- ariaLabelledBy: ariaLabelledBy
61
+ ariaLabelledBy: ariaLabelledBy,
62
+ onClick: handleClick,
63
+ onKeyDown: handleKeyDown
53
64
  }));
54
65
  };
55
66
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "104.23.0",
3
+ "version": "104.23.1",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "engineStrict": true,
6
6
  "engines": {