diff --git a/playbook/app/pb_kits/playbook/pb_text_input/_text_input.tsx b/playbook/app/pb_kits/playbook/pb_text_input/_text_input.tsx index 39d45e15a8..36d955deb9 100755 --- a/playbook/app/pb_kits/playbook/pb_text_input/_text_input.tsx +++ b/playbook/app/pb_kits/playbook/pb_text_input/_text_input.tsx @@ -154,9 +154,11 @@ const TextInput = (props: TextInputProps, ref: React.LegacyRef // Keep cursor position if (!isAtEnd) { - // Account for added characters (e.g., commas added in currency) + // Account for extra characters (e.g., commas added/removed in currency) if (formattedValue.length - inputValue.length === 1) { cursorPosition = cursorPosition + 1 + } else if (mask === "currency" && formattedValue.length - inputValue.length === -1) { + cursorPosition = cursorPosition - 1 } e.target.selectionStart = e.target.selectionEnd = cursorPosition }