Skip to content

Commit

Permalink
fix: resolve cursor positioning issue on mobile (#49)
Browse files Browse the repository at this point in the history
fixed an issue with position of cursor when typing a number in mobile, the cursor goes before the first number entered in the input instead of going behind.
  • Loading branch information
Mr-Vipi authored Nov 5, 2024
1 parent ffd4bc1 commit 514d55b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/ui/phone-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const PhoneInput: React.ForwardRefExoticComponent<PhoneInputProps> =
flagComponent={FlagComponent}
countrySelectComponent={CountrySelect}
inputComponent={InputComponent}
smartCaret={false}
/**
* Handles the onChange event.
*
Expand Down
1 change: 1 addition & 0 deletions content/snippets/phone-input.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const PhoneInput: React.ForwardRefExoticComponent<PhoneInputProps> =
flagComponent={FlagComponent}
countrySelectComponent={CountrySelect}
inputComponent={InputComponent}
smartCaret={false}
/**
* Handles the onChange event.
*
Expand Down

0 comments on commit 514d55b

Please sign in to comment.