Skip to content

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 #52

@dinbtechit

Description

@dinbtechit

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}
 ....
>
Kapture.2025-05-09.at.12.34.03.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions