diff --git a/src/components/input/NumberInput.tsx b/src/components/input/NumberInput.tsx index 96c7f446..5b2188ee 100644 --- a/src/components/input/NumberInput.tsx +++ b/src/components/input/NumberInput.tsx @@ -114,8 +114,8 @@ const NumberInput = ({ isLoading = false, maskType = 'number', decimals = 0, - thousandSeparator = '.', - decimalSeparator = ',', + thousandSeparator = ',', + decimalSeparator = '.', currencyPrefix = 'Rp ', weightUnit = 'kg', allowNegative = false, @@ -178,11 +178,11 @@ const NumberInput = ({ if (oncleared) oncleared(); }; - const im = createInputMask( + const im = createInputMask( maskType, decimals, - thousandSeparator, - decimalSeparator, + ',', + '.', allowNegative, handleComplete, handleIncomplete,