react-table-edit 1.1.5 → 1.1.7
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 +0 -2
- package/dist/index.mjs +0 -2
- package/package.json +1 -2
package/dist/index.js
CHANGED
|
@@ -3273,8 +3273,6 @@ var TableEdit = (0, import_react16.forwardRef)((props, ref) => {
|
|
|
3273
3273
|
className: (0, import_classnames14.default)("form-control border-0 rounded-0 input-numeric", { "is-invalid": col.validate && col.validate(row[col.field], row) }),
|
|
3274
3274
|
onValueChange: (values) => {
|
|
3275
3275
|
floatValue = values?.floatValue;
|
|
3276
|
-
const textBeforeDot = values?.value.split(".")[1];
|
|
3277
|
-
row[col.field] = textBeforeDot ? parseFloat(values?.value).toFixed(textBeforeDot.length) : values?.floatValue;
|
|
3278
3276
|
},
|
|
3279
3277
|
onFocus: (e) => {
|
|
3280
3278
|
e.target.setSelectionRange(0, e.target.innerText.length - 1);
|
package/dist/index.mjs
CHANGED
|
@@ -3242,8 +3242,6 @@ var TableEdit = forwardRef4((props, ref) => {
|
|
|
3242
3242
|
className: classnames9("form-control border-0 rounded-0 input-numeric", { "is-invalid": col.validate && col.validate(row[col.field], row) }),
|
|
3243
3243
|
onValueChange: (values) => {
|
|
3244
3244
|
floatValue = values?.floatValue;
|
|
3245
|
-
const textBeforeDot = values?.value.split(".")[1];
|
|
3246
|
-
row[col.field] = textBeforeDot ? parseFloat(values?.value).toFixed(textBeforeDot.length) : values?.floatValue;
|
|
3247
3245
|
},
|
|
3248
3246
|
onFocus: (e) => {
|
|
3249
3247
|
e.target.setSelectionRange(0, e.target.innerText.length - 1);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-table-edit",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.7",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
"@hookform/resolvers": "^2.8.10",
|
|
31
31
|
"@syncfusion/ej2-react-dropdowns": "20.2.36",
|
|
32
32
|
"@types/react-resizable": "^3.0.7",
|
|
33
|
-
"babel-loader": "^9.1.3",
|
|
34
33
|
"becoxy-icons": "1.8.1",
|
|
35
34
|
"bootstrap": "5.1.0",
|
|
36
35
|
"classnames": "2.3.1",
|