react-input
react-input copied to clipboard
Bug - when showMask is true. Focusing the screen setting the cursor at the end of the field as opposed to the start of the field
when showMask is true. Focusing the screen setting the cursor at the end of the field as opposed to the start of the field
sudo code
const phoneNumberInputRef = useMask({
mask: "___-___-____",
showMask: true,
replacement: { _: /\d/ },
});
// HeroUI input field
<Input
ref={phoneNumberInputRef}
....
>
https://github.com/user-attachments/assets/33a98c13-0dad-4ef7-9866-d1746f891b01