From f4cd74b45ab45d00a2732c75d6b8a669d460fb22 Mon Sep 17 00:00:00 2001 From: Victor Oliva Date: Mon, 16 Mar 2026 09:13:13 +0100 Subject: [PATCH] Allow pasting thousands-separated values into input --- src/components/IntegerInput.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/IntegerInput.tsx b/src/components/IntegerInput.tsx index 1745a9d..2072b07 100644 --- a/src/components/IntegerInput.tsx +++ b/src/components/IntegerInput.tsx @@ -75,7 +75,8 @@ export const IntegerInput: FC<{ const handleChange = useCallback( (e: React.ChangeEvent) => { - const input = e.target.value + // Exclude thousands separators when pasting + const input = e.target.value.replace(/[,. ']/g, "") // Allow empty input if (input === "") {