catamphetamine / react-phone-number-input

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

The caret is reset when validation occurs #443

Open Geparder opened 1 month ago

Geparder commented 1 month 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 1 month ago

kindly assign this issue to me.

adomasa commented 1 month ago

Any news on this?

Geparder commented 3 days ago

kindly assign this issue to me.

do you have any results?

hunxjunedo commented 5 hours ago

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