@pdg/react-table 1.0.54 → 1.0.56

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
@@ -2896,7 +2896,6 @@ var TableBodyCell = function (_a) {
2896
2896
  React.useEffect(function () {
2897
2897
  if (column.type === 'check') {
2898
2898
  setItemColumnChecked(item, column, checked);
2899
- column.onCheckChange && column.onCheckChange(item, checked);
2900
2899
  }
2901
2900
  // eslint-disable-next-line react-hooks/exhaustive-deps
2902
2901
  }, [checked]);
@@ -2943,6 +2942,7 @@ var TableBodyCell = function (_a) {
2943
2942
  data = (React.createElement(material.Box, { className: 'TableBoxyCell-check-box', onClick: menuOpen ? undefined : function (e) { return e.stopPropagation(); } },
2944
2943
  React.createElement(material.Checkbox, { checked: checked, disabled: checkDisabled, onChange: function (e, newChecked) {
2945
2944
  setChecked(newChecked);
2945
+ column.onCheckChange && column.onCheckChange(item, newChecked);
2946
2946
  onCheckChange && onCheckChange(item, column, newChecked);
2947
2947
  } })));
2948
2948
  break;