react-table-edit 0.0.5 → 0.0.7

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
@@ -1466,9 +1466,6 @@ var TableEdit = (0, import_react12.forwardRef)((props, ref) => {
1466
1466
  }, 5);
1467
1467
  };
1468
1468
  const handleDataChange = (row, col, indexRow) => {
1469
- if (dataSourceChange) {
1470
- dataSourceChange(dataSource);
1471
- }
1472
1469
  if (rowChange) {
1473
1470
  const rs = rowChange(row, indexRow, col.field);
1474
1471
  if (rs && rs?.then) {
@@ -1487,6 +1484,9 @@ var TableEdit = (0, import_react12.forwardRef)((props, ref) => {
1487
1484
  }
1488
1485
  }
1489
1486
  }
1487
+ if (dataSourceChange) {
1488
+ dataSourceChange(dataSource);
1489
+ }
1490
1490
  });
1491
1491
  } else {
1492
1492
  for (let index = 0; index <= tableColumns.length; index++) {
@@ -1504,6 +1504,9 @@ var TableEdit = (0, import_react12.forwardRef)((props, ref) => {
1504
1504
  }
1505
1505
  }
1506
1506
  }
1507
+ if (dataSourceChange) {
1508
+ dataSourceChange(dataSource);
1509
+ }
1507
1510
  }
1508
1511
  };
1509
1512
  const handleKeyPress = (e) => {
package/dist/index.mjs CHANGED
@@ -1440,9 +1440,6 @@ var TableEdit = forwardRef2((props, ref) => {
1440
1440
  }, 5);
1441
1441
  };
1442
1442
  const handleDataChange = (row, col, indexRow) => {
1443
- if (dataSourceChange) {
1444
- dataSourceChange(dataSource);
1445
- }
1446
1443
  if (rowChange) {
1447
1444
  const rs = rowChange(row, indexRow, col.field);
1448
1445
  if (rs && rs?.then) {
@@ -1461,6 +1458,9 @@ var TableEdit = forwardRef2((props, ref) => {
1461
1458
  }
1462
1459
  }
1463
1460
  }
1461
+ if (dataSourceChange) {
1462
+ dataSourceChange(dataSource);
1463
+ }
1464
1464
  });
1465
1465
  } else {
1466
1466
  for (let index = 0; index <= tableColumns.length; index++) {
@@ -1478,6 +1478,9 @@ var TableEdit = forwardRef2((props, ref) => {
1478
1478
  }
1479
1479
  }
1480
1480
  }
1481
+ if (dataSourceChange) {
1482
+ dataSourceChange(dataSource);
1483
+ }
1481
1484
  }
1482
1485
  };
1483
1486
  const handleKeyPress = (e) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-table-edit",
3
3
  "license": "MIT",
4
- "version": "0.0.5",
4
+ "version": "0.0.7",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",