diff --git a/src/number_format_base.tsx b/src/number_format_base.tsx index f8d1e52b..da8808da 100644 --- a/src/number_format_base.tsx +++ b/src/number_format_base.tsx @@ -383,6 +383,7 @@ export default function NumberFormatBase( if (e.persist) e.persist(); const el = e.target; + const currentTarget = e.currentTarget; focusedElm.current = el; timeout.current.focusTimeout = setTimeout(() => { @@ -398,7 +399,7 @@ export default function NumberFormatBase( setPatchedCaretPosition(el, caretPosition, value); } - onFocus(e); + onFocus({ ...e, currentTarget }); }, 0); };