@k3-tech/react-kit 0.0.60 → 0.0.61
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
CHANGED
|
@@ -24143,7 +24143,7 @@ function NumberField({
|
|
|
24143
24143
|
}) {
|
|
24144
24144
|
const innerValue = value;
|
|
24145
24145
|
const [displayValue, setDisplayValue] = useState(
|
|
24146
|
-
innerValue.toLocaleString("id-ID")
|
|
24146
|
+
(Number(innerValue) || "").toLocaleString("id-ID")
|
|
24147
24147
|
);
|
|
24148
24148
|
if (field.numberMode === "currency") {
|
|
24149
24149
|
const parseAndFormatIDRInput = (input) => {
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ export function NumberField({
|
|
|
10
10
|
}: FieldRenderProps) {
|
|
11
11
|
const innerValue = value as number;
|
|
12
12
|
const [displayValue, setDisplayValue] = useState(
|
|
13
|
-
innerValue.toLocaleString('id-ID'),
|
|
13
|
+
(Number(innerValue) || "").toLocaleString('id-ID'),
|
|
14
14
|
);
|
|
15
15
|
|
|
16
16
|
if (field.numberMode === 'currency') {
|