catamphetamine / react-phone-number-input

React component for international phone number input
http://catamphetamine.gitlab.io/react-phone-number-input/
MIT License
933 stars 195 forks source link

The caret is reset when validation occurs #443

Open Geparder opened 6 months ago

Geparder commented 6 months ago

If there are errors on the form and you enter a phone number, then after each entry the cursor disappears from the phone number entry field

import PhoneInput from 'react-phone-number-input/react-hook-form-input';

<PhoneInput name="phone" inputComponent={InputRef} control={control} rules={{ required: "error", }} />

If you remove the validation rules, then everything works fine

hunxjunedo commented 6 months ago

kindly assign this issue to me.

adomasa commented 5 months ago

Any news on this?

Geparder commented 5 months ago

kindly assign this issue to me.

do you have any results?

hunxjunedo commented 4 months ago

@Geparder just read your comment, coming back with a result tomorrow.