react-input icon indicating copy to clipboard operation
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

Open dinbtechit opened this issue 7 months ago • 0 comments

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

dinbtechit avatar May 09 '25 15:05 dinbtechit