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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
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
|
|
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
|
|
644
|
+
options.push({ ...val, [fieldLabel ?? "label"]: val[fieldLabel ?? "label"], isCreated: void 0 });
|
|
645
645
|
}
|
|
646
646
|
onChange(val);
|
|
647
647
|
};
|