From 30f2932dd9f20277f42ca8a494818ab067039ec3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 28 Sep 2026 00:40:22 +0000 Subject: [PATCH 1/3] Initial plan From b077bea9218a6d46889573dcb0e53f2fb3037636 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 28 Sep 2026 00:41:45 +0000 Subject: [PATCH 2/3] Fix: exclude all CurrencyInputProps fields from customProps spread to input element Co-authored-by: ericblade <1451847+ericblade@users.noreply.github.com> --- src/index.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 1cd9df6..2499fdf 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -128,6 +128,9 @@ class CurrencyInput extends React.Component): CurrencyInputState { const { onChangeEvent, + onBlur, + onClick, + onFocus, value: propValue, decimalSeparator, thousandSeparator, @@ -140,6 +143,10 @@ class CurrencyInput extends React.Component Date: Mon, 28 Sep 2026 01:18:52 +0000 Subject: [PATCH 3/3] Add TypeScript exhaustive check to ensure all CurrencyInputProps are handled in prepareProps Co-authored-by: ericblade <1451847+ericblade@users.noreply.github.com> --- src/index.tsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 2499fdf..149bda8 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -174,6 +174,18 @@ class CurrencyInput extends React.Component, unknown> = { + onBlur, onClick, onFocus, onChangeEvent, + allowEmpty, allowNegative, autoFocus, + disableSelectionHandling: propDisableSelectionHandling, selectAllOnFocus, + decimalSeparator, inputType, precision, prefix, style, suffix, thousandSeparator, + id, tabIndex, value: propValue, + logValues, + }; + void _; + const disableSelectionHandling = propDisableSelectionHandling || inputType === 'number'; return { maskedValue, value, customProps, disableSelectionHandling, previousProps: props }; }