react-table-edit 1.2.4 → 1.2.5

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
@@ -3213,7 +3213,7 @@ var TableEdit = (0, import_react16.forwardRef)((props, ref) => {
3213
3213
  formatSetting,
3214
3214
  placeholder: t("Select"),
3215
3215
  loadOptions: col.selectSettings?.loadOptions,
3216
- handleAdd: col.selectSettings?.handAddNew,
3216
+ handleAdd: () => col.selectSettings?.handAddNew(indexRow, row),
3217
3217
  fieldChildren: col.selectSettings?.fieldChild ?? "children",
3218
3218
  selectChilds: col.selectSettings?.selectChilds,
3219
3219
  showFooter: col.selectSettings?.showFooter,
package/dist/index.mjs CHANGED
@@ -3184,7 +3184,7 @@ var TableEdit = forwardRef4((props, ref) => {
3184
3184
  formatSetting,
3185
3185
  placeholder: t("Select"),
3186
3186
  loadOptions: col.selectSettings?.loadOptions,
3187
- handleAdd: col.selectSettings?.handAddNew,
3187
+ handleAdd: () => col.selectSettings?.handAddNew(indexRow, row),
3188
3188
  fieldChildren: col.selectSettings?.fieldChild ?? "children",
3189
3189
  selectChilds: col.selectSettings?.selectChilds,
3190
3190
  showFooter: col.selectSettings?.showFooter,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-table-edit",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",