From 90ae7c469a9cfbc81b071a03a26c82f4153d6ba4 Mon Sep 17 00:00:00 2001 From: rstubryan Date: Thu, 23 Oct 2025 16:48:55 +0700 Subject: [PATCH] refactor(FE-114): swap thousand and decimal separators for improved usability --- src/components/input/NumberInput.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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,