react-table-edit 1.2.40 → 1.2.41

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
@@ -679,7 +679,7 @@ var SelectTable = (0, import_react6.forwardRef)((props, ref) => {
679
679
  };
680
680
  const handChange = (val) => {
681
681
  if (val && val.isCreated) {
682
- options.push({ ...val, [fieldLabel ?? "label"]: val.value, isCreated: void 0 });
682
+ options.push({ ...val, [fieldLabel ?? "label"]: val[fieldLabel ?? "label"], isCreated: void 0 });
683
683
  }
684
684
  onChange(val);
685
685
  };
package/dist/index.mjs CHANGED
@@ -641,7 +641,7 @@ var SelectTable = forwardRef((props, ref) => {
641
641
  };
642
642
  const handChange = (val) => {
643
643
  if (val && val.isCreated) {
644
- options.push({ ...val, [fieldLabel ?? "label"]: val.value, isCreated: void 0 });
644
+ options.push({ ...val, [fieldLabel ?? "label"]: val[fieldLabel ?? "label"], isCreated: void 0 });
645
645
  }
646
646
  onChange(val);
647
647
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-table-edit",
3
- "version": "1.2.40",
3
+ "version": "1.2.41",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",