react-table-edit 1.4.50 → 1.4.52

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.mjs CHANGED
@@ -17881,7 +17881,7 @@ const SelectTable = forwardRef((props, ref) => {
17881
17881
  };
17882
17882
  const handChange = (val) => {
17883
17883
  if (val && val.isCreated) {
17884
- const newVal = { ...val, [fieldLabel ?? 'label']: val.valueCreate, isCreated: undefined };
17884
+ const newVal = { ...val, [fieldLabel ?? 'label']: val.valueCreate, isCreated: undefined, isCreatedItem: true };
17885
17885
  options.unshift(newVal);
17886
17886
  onChange(newVal);
17887
17887
  return;
@@ -71785,7 +71785,7 @@ const mapDataImportExcel = async (dataSheet, headerRow, dataMap, handleValidate)
71785
71785
  }
71786
71786
  }
71787
71787
  else {
71788
- value = row[ele.column] ? row[ele.column].toString() : undefined;
71788
+ value = row[ele.column] ? row[ele.column].toString().trim() : undefined;
71789
71789
  }
71790
71790
  //validate cho mỗi loại
71791
71791
  }