catamphetamine / react-phone-number-input

React component for international phone number input

Home Page:http://catamphetamine.gitlab.io/react-phone-number-input/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The caret is reset when validation occurs

Geparder opened this issue · comments

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

kindly assign this issue to me.

Any news on this?

kindly assign this issue to me.

do you have any results?

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