react-table-edit 1.4.31 → 1.4.32

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
@@ -43236,7 +43236,7 @@ const TableEdit = forwardRef((props, ref) => {
43236
43236
  const [datePart, timePart] = stringData.split(' ');
43237
43237
  const [day, month, year] = datePart.split('/');
43238
43238
  const [hour, minute] = timePart.split(':');
43239
- const date = new Date(year, month - 1, day, hour, minute);
43239
+ const date = new Date(Number(year), Number(month) - 1, Number(day), Number(hour), Number(minute));
43240
43240
  if (!isNaN(date.getTime())) {
43241
43241
  if (column.onPaste) {
43242
43242
  dataRow[column.field] = column.onPaste(dataRow, date);
@@ -43253,7 +43253,7 @@ const TableEdit = forwardRef((props, ref) => {
43253
43253
  }
43254
43254
  }
43255
43255
  else if (column.type === 'numeric') {
43256
- const number = Number(stringData);
43256
+ const number = Number(stringData.replaceAll(formatSetting?.thousandSeparator ?? '.', '').replaceAll(formatSetting?.decimalSeparator ?? ',', '.'));
43257
43257
  if (!isNaN(number)) {
43258
43258
  if (column.onPaste) {
43259
43259
  dataRow[column.field] = column.onPaste(dataRow, number);