Skip to content

Commit

Permalink
fix(phone-input): fix caret (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksey-ilin committed Feb 1, 2021
1 parent 179f687 commit b510257
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/phone-input/src/Component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const PhoneInput = React.forwardRef<HTMLInputElement, PhoneInputProps>(

if (
previousConformedValue &&
(([3, 6, 11].includes(currentCaretPosition) &&
(([3, 6].includes(currentCaretPosition) &&
Math.abs(
previousValueWithoutFormatting.length -
currentValueWithoutFormatting.length,
Expand Down

0 comments on commit b510257

Please sign in to comment.