@mkt-loitd/react-table-grid-custom 1.3.5 → 1.3.6

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
@@ -357,11 +357,11 @@ var ReactTableGridCustomInner = (props, ref) => {
357
357
  import_core.Checkbox,
358
358
  {
359
359
  ...props2,
360
- checked: !!checked,
361
- onChange: (e) => {
362
- const shiftKey = e.nativeEvent instanceof MouseEvent ? e.nativeEvent.shiftKey : false;
363
- onChange(e.target.checked, shiftKey);
364
- }
360
+ checked: Boolean(checked),
361
+ onChange: (e) => onChange(
362
+ e.currentTarget.checked,
363
+ e.nativeEvent instanceof MouseEvent ? e.nativeEvent.shiftKey : false
364
+ )
365
365
  }
366
366
  );
367
367
  }
package/dist/index.mjs CHANGED
@@ -328,11 +328,11 @@ var ReactTableGridCustomInner = (props, ref) => {
328
328
  Checkbox,
329
329
  {
330
330
  ...props2,
331
- checked: !!checked,
332
- onChange: (e) => {
333
- const shiftKey = e.nativeEvent instanceof MouseEvent ? e.nativeEvent.shiftKey : false;
334
- onChange(e.target.checked, shiftKey);
335
- }
331
+ checked: Boolean(checked),
332
+ onChange: (e) => onChange(
333
+ e.currentTarget.checked,
334
+ e.nativeEvent instanceof MouseEvent ? e.nativeEvent.shiftKey : false
335
+ )
336
336
  }
337
337
  );
338
338
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mkt-loitd/react-table-grid-custom",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "description": "React Table Grid Custom component",
5
5
  "license": "ISC",
6
6
  "private": false,