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.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -43264,7 +43264,7 @@ const TableEdit = React$5.forwardRef((props, ref) => {
|
|
|
43264
43264
|
const [datePart, timePart] = stringData.split(' ');
|
|
43265
43265
|
const [day, month, year] = datePart.split('/');
|
|
43266
43266
|
const [hour, minute] = timePart.split(':');
|
|
43267
|
-
const date = new Date(year, month - 1, day, hour, minute);
|
|
43267
|
+
const date = new Date(Number(year), Number(month) - 1, Number(day), Number(hour), Number(minute));
|
|
43268
43268
|
if (!isNaN(date.getTime())) {
|
|
43269
43269
|
if (column.onPaste) {
|
|
43270
43270
|
dataRow[column.field] = column.onPaste(dataRow, date);
|
|
@@ -43281,7 +43281,7 @@ const TableEdit = React$5.forwardRef((props, ref) => {
|
|
|
43281
43281
|
}
|
|
43282
43282
|
}
|
|
43283
43283
|
else if (column.type === 'numeric') {
|
|
43284
|
-
const number = Number(stringData);
|
|
43284
|
+
const number = Number(stringData.replaceAll(formatSetting?.thousandSeparator ?? '.', '').replaceAll(formatSetting?.decimalSeparator ?? ',', '.'));
|
|
43285
43285
|
if (!isNaN(number)) {
|
|
43286
43286
|
if (column.onPaste) {
|
|
43287
43287
|
dataRow[column.field] = column.onPaste(dataRow, number);
|